summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-27 16:10:20 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-27 16:10:20 +0200
commit13b7937381a917fe40d24cec740cbb2ebd205959 (patch)
tree54a04ad0400746f565924443bf416a2c8ddf0e04 /apps/files_sharing/js
parent3b2fd5e4e6aad769f656c473f1a1fe53f5936c47 (diff)
downloadnextcloud-server-13b7937381a917fe40d24cec740cbb2ebd205959.tar.gz
nextcloud-server-13b7937381a917fe40d24cec740cbb2ebd205959.zip
Allow late registration of file actions in public page
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/public.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 1d633a655d5..f911f3689eb 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -33,6 +33,10 @@ OCA.Sharing.PublicApp = {
// regular actions
fileActions.merge(OCA.Files.fileActions);
+ // in case apps would decide to register file actions later,
+ // replace the global object with this one
+ OCA.Files.fileActions = fileActions;
+
this._initialized = true;
this.initialDir = $('#dir').val();