summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-23 18:39:37 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-23 18:39:37 +0200
commit1317b7c03dbbd98165ef29b50aa26bb1dd283cba (patch)
tree1cbdf778789f17a948cf6f2e2d0242fdb5190fc9 /apps
parent1909288fcb9231006ae7703422f046309635b4e2 (diff)
downloadnextcloud-server-1317b7c03dbbd98165ef29b50aa26bb1dd283cba.tar.gz
nextcloud-server-1317b7c03dbbd98165ef29b50aa26bb1dd283cba.zip
pass the name of the item source from the browser to the server - no need to get the data via complicated db queries
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/share.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 68f6f3ba76f..340e0939445 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -35,14 +35,14 @@ $(document).ready(function() {
if ($(tr).data('id') != $('#dropdown').attr('data-item-source')) {
OC.Share.hideDropDown(function () {
$(tr).addClass('mouseOver');
- OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions);
+ OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions, filename);
});
} else {
OC.Share.hideDropDown();
}
} else {
$(tr).addClass('mouseOver');
- OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions);
+ OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions, filename);
}
});
}