mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 10:54:41 -04:00
only load share action when in file browser
This commit is contained in:
parent
b4e89871dd
commit
511c193631
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Reference in a new issue