summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-11 13:33:43 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-11 13:33:43 +0200
commit511c193631bfa041c5094a6d5499a233e9d93601 (patch)
tree9790c5b3479bda49e3f304f979f6bc3d61599a1d
parentb4e89871dd845ecff3d7207ecbf1132fb1cde23b (diff)
downloadnextcloud-server-511c193631bfa041c5094a6d5499a233e9d93601.tar.gz
nextcloud-server-511c193631bfa041c5094a6d5499a233e9d93601.zip
only load share action when in file browser
-rw-r--r--apps/files_sharing/js/share.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index fed85b35b53..184b2583aed 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -9,9 +9,11 @@ $(document).ready(function() {
}
}
});
- FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
- createShareDropdown(filename, $('#dir').val()+'/'+filename);
- });
+ if(typeof FileActions!=='undefined'){
+ FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
+ createShareDropdown(filename, $('#dir').val()+'/'+filename);
+ });
+ };
$('.share').click(function(event) {
event.preventDefault();
var filenames = getSelectedFiles('name');