Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-14 14:42:59 +0400
committerBart Visscher <bartv@thisnet.nl>2012-04-14 14:45:32 +0400
commit524bd2e75f92c7f5148f0e843398febf3917b476 (patch)
tree2e7592abdd029c3843e783427227ae3dcc19e7e2 /apps/files_sharing
parent7504ceb6f2200b15efa344dd4d4d8bf5c511018a (diff)
Sharing: Don't get share icon for undefined filename
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/share.js5
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;