diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 3ce0a1a61c..a8fa94107e 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -1,4 +1,11 @@ $(document).ready(function() { + $('#dialog').live('mouseleave', function(event) { + if ($(this).is(':visible')) { + $(this).hide('blind', function() { + $(this).remove(); + }); + } + }); FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) { createShareDialog(filename, $('#dir').val()+'/'+filename); }); @@ -31,7 +38,7 @@ $(document).ready(function() { }); function createShareDialog(filenames, files) { - var html = "
"; + var html = "