diff options
author | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2020-12-09 17:04:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 17:04:16 +0300 |
commit | 742b55ffb90caaa9d3718a41e6cb7a6baea5d175 (patch) | |
tree | 6b5f3f00d6c47b46fba867b387c5b3bddb10119e /js/main.js | |
parent | 7bdd9a68de1104292a9b9d4e2d868f4c508224c6 (diff) | |
parent | 17cb7606aef6ebbe9c9257c2468ba269a3a28898 (diff) |
Merge pull request #414 from ONLYOFFICE/developv6.2.0
Release/6.2.0
Diffstat (limited to 'js/main.js')
-rw-r--r-- | js/main.js | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -140,6 +140,8 @@ }; OCA.Onlyoffice.CloseEditor = function () { + OCA.Onlyoffice.frameSelector = null; + $("body").removeClass("onlyoffice-inline"); $("#onlyofficeHeader").remove(); @@ -151,9 +153,7 @@ OCA.Onlyoffice.folderUrl = null; } - if (OCA.Versions) { - OCA.Onlyoffice.bindVersionClick(); - } + OCA.Onlyoffice.bindVersionClick(); }; OCA.Onlyoffice.OpenShareDialog = function () { @@ -364,14 +364,14 @@ var button = document.createElement("a"); button.href = OC.generateUrl("apps/" + OCA.Onlyoffice.AppName + "/s/" + encodeURIComponent($("#sharingToken").val())); - button.className = "button"; + button.className = "onlyoffice-public-open button"; button.innerText = t(OCA.Onlyoffice.AppName, "Open in ONLYOFFICE") if (!OCA.Onlyoffice.setting.sameTab) { button.target = "_blank"; } - $("#preview").append(button); + $("#preview").prepend(button); }; OCA.Onlyoffice.GetSettings(initSharedButton); @@ -379,12 +379,10 @@ OC.Plugins.register("OCA.Files.FileList", OCA.Onlyoffice.FileList); OC.Plugins.register("OCA.Files.NewFileMenu", OCA.Onlyoffice.NewFileMenu); - if (OCA.Versions) { - OCA.Onlyoffice.bindVersionClick(); - } + OCA.Onlyoffice.bindVersionClick(); } }; - $(document).ready(initPage); + initPage(); })(OCA); |