diff options
author | Julian Müller <julian.mueller.ffb@kabelmail.de> | 2014-04-14 18:26:45 +0200 |
---|---|---|
committer | Julian Müller <julian.mueller.ffb@kabelmail.de> | 2014-04-14 18:26:45 +0200 |
commit | 3bc3d4c9f346b378853ccf36f49e2f3816ea721d (patch) | |
tree | 7a47f5e712191bfc946281063ebc651acc416478 /core/js | |
parent | fe364656a494af0ce46c7cb84ed6303b5bae56d5 (diff) | |
download | nextcloud-server-3bc3d4c9f346b378853ccf36f49e2f3816ea721d.tar.gz nextcloud-server-3bc3d4c9f346b378853ccf36f49e2f3816ea721d.zip |
close-button for share_dropdown
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/share.js b/core/js/share.js index 5cabc614563..8210dd5d45f 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -211,6 +211,7 @@ OC.Share={ } }); + html += '<p align="right"><button class="icon-close share-dropdown-close" /></p>'; html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with user or group …')+'" />'; html += '<ul id="shareWithList">'; html += '</ul>'; @@ -552,6 +553,10 @@ $(document).ready(function() { } }); + $(document).on('click', '.share-dropdown-close', function(event) { + OC.Share.hideDropDown(); + }); + $(this).click(function(event) { var target = $(event.target); var isMatched = !target.is('.drop, .ui-datepicker-next, .ui-datepicker-prev, .ui-icon') |