[Pkg-owncloud-commits] [owncloud] 93/273: Allow late registration of file actions in public page
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:13:03 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 13b7937381a917fe40d24cec740cbb2ebd205959
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Fri Jun 27 16:10:20 2014 +0200
Allow late registration of file actions in public page
---
apps/files_sharing/js/public.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 1d633a6..f911f36 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();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list