From 13b7937381a917fe40d24cec740cbb2ebd205959 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 27 Jun 2014 16:10:20 +0200 Subject: [PATCH 1/2] 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 1d633a655d..f911f3689e 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(); From 0ff30a7d5e28d4eeb391e87f33ea28b643814574 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 27 Jun 2014 16:10:37 +0200 Subject: [PATCH 2/2] Remove missed console.log in file list --- apps/files/js/filelist.js | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index dd77b534f5..0477a65703 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -517,7 +517,6 @@ * This will refresh the file actions on the list. */ _onFileActionsUpdated: function() { - console.log('onFileActionsUpdated'); var self = this; this.$fileList.find('tr td.filename').each(function() { self.fileActions.display($(this), true, self);