summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-11 12:03:48 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-11 12:03:48 -0400
commit0ad0ed77c50886a5c85d7b745b128430e4a3833c (patch)
tree156d19f1310b7d046d516494972c9d8d01ee9ad7
parent0f91438b802343060d147d5a5bba2367cabdb1c9 (diff)
downloadnextcloud-server-0ad0ed77c50886a5c85d7b745b128430e4a3833c.tar.gz
nextcloud-server-0ad0ed77c50886a5c85d7b745b128430e4a3833c.zip
Hide the dropdown if you click the share file action button
-rw-r--r--apps/files_sharing/js/share.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index b5aef4068e7..686361d9aba 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -3,9 +3,13 @@ $(document).ready(function() {
FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
if ($('#dropdown').length != 0) {
$('#dropdown').hide('blind', function() {
+ var dropdownFile = $('#dropdown').data('file')
+ var file = $('#dir').val()+'/'+filename;
$('#dropdown').remove();
$('tr').removeClass('mouseOver');
- createDropdown(filename, $('#dir').val()+'/'+filename);
+ if (dropdownFile != file) {
+ createDropdown(filename, file);
+ }
});
} else {
createDropdown(filename, $('#dir').val()+'/'+filename);