Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2018-03-19 17:18:53 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2018-03-19 17:19:01 +0300
commit7c7e069e7e6f32b9074e043124b1c13fd239efe8 (patch)
tree2308365f3b78c3c620d63fc72a61ca55a6434b34 /js
parent8b21cb0a3b9bdfea1c4e3ade7c4eca17b177850b (diff)
on shared file only
Diffstat (limited to 'js')
-rw-r--r--js/public.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/public.js b/js/public.js
index 73af291..9465d40 100644
--- a/js/public.js
+++ b/js/public.js
@@ -36,6 +36,10 @@
OCA.Onlyoffice.InitPublic = function () {
+ if (!!$("#dir").val().length) {
+ return;
+ }
+
var fileName = $("#filename").val();
var extension = fileName.substr(fileName.lastIndexOf('.') + 1);