only load share action when in file browser

remotes/origin/stable
Jan-Christoph Borchardt 15 years ago
parent b4e89871dd
commit 511c193631
  1. 8
      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');

Loading…
Cancel
Save