Merge pull request #217 from ONLYOFFICE/bugfix/view-mode

csharp: fix view mode on upload
This commit is contained in:
Sergey Linnik
2021-10-26 18:13:25 +03:00
committed by GitHub

View File

@ -227,7 +227,7 @@ if (typeof jQuery != "undefined") {
jq(document).on("click", "#beginView:not(.disable)", function () {
var fileId = encodeURIComponent(jq('#hiddenFileName').val());
var url = "doceditor.aspx?action=view&fileID=" + fileId;
var url = "doceditor.aspx?editorsMode=view&fileID=" + fileId;
window.open(url, "_blank");
jq('#hiddenFileName').val("");
jq.unblockUI();