only load share action when in file browser
This commit is contained in:
parent
b4e89871dd
commit
511c193631
|
@ -9,9 +9,11 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
|
if(typeof FileActions!=='undefined'){
|
||||||
createShareDropdown(filename, $('#dir').val()+'/'+filename);
|
FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
|
||||||
});
|
createShareDropdown(filename, $('#dir').val()+'/'+filename);
|
||||||
|
});
|
||||||
|
};
|
||||||
$('.share').click(function(event) {
|
$('.share').click(function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var filenames = getSelectedFiles('name');
|
var filenames = getSelectedFiles('name');
|
||||||
|
|
Loading…
Reference in New Issue