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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-10-16 17:05:03 +0300
committerGitHub <noreply@github.com>2018-10-16 17:05:03 +0300
commita907267b0353658a9160a31b2fc83c7d9dd3a63e (patch)
treea9fc73d1e899bd4be79b3608dba3a577c85e7ba7
parent9cf73ddc318765c0c4354326979eb585acb9f5be (diff)
parenta7d6a3c211d199b05ff83d2a450a32f6c2a98652 (diff)
Merge pull request #278 from nextcloud/fix/namespacev3.0.0-beta3
Define namespace early on
-rw-r--r--js/documents.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/documents.js b/js/documents.js
index 82bf8f27..8ca05043 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -744,10 +744,6 @@ $(document).ready(function() {
window.Files = FileList;
- if (!OCA.RichDocuments) {
- OCA.RichDocuments = {};
- }
-
OCA.RichDocuments.documentsMain = documentsMain;
documentsMain.docs = $('.documentslist').documentGrid();
@@ -758,3 +754,9 @@ $(document).ready(function() {
documentsMain.onStartup();
});
+
+(function() {
+ if (!OCA.RichDocuments) {
+ OCA.RichDocuments = {};
+ }
+})();