diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-04-14 12:42:59 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-04-14 12:45:32 +0200 |
commit | 524bd2e75f92c7f5148f0e843398febf3917b476 (patch) | |
tree | 2e7592abdd029c3843e783427227ae3dcc19e7e2 /apps/files_sharing/js | |
parent | 7504ceb6f2200b15efa344dd4d4d8bf5c511018a (diff) | |
download | nextcloud-server-524bd2e75f92c7f5148f0e843398febf3917b476.tar.gz nextcloud-server-524bd2e75f92c7f5148f0e843398febf3917b476.zip |
Sharing: Don't get share icon for undefined filename
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/share.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index fc9e17c25c7..42851b35051 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -2,8 +2,11 @@ $(document).ready(function() { var shared_status = {}; if (typeof FileActions !== 'undefined') { FileActions.register('all', 'Share', function(filename) { - if (scanFiles.scanning){return;}//workaround to prevent aditional http request block scanning feedback + if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback var icon; + if (typeof filename == 'undefined') { + return false; + } var file = $('#dir').val()+'/'+filename; if(shared_status[file]) return shared_status[file].icon; |