summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/share.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/js/share.js')
-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');