From 96ab35a3310b876f74c45458f9b3d36613e303cd Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Tue, 2 Aug 2011 15:23:17 -0400 Subject: [PATCH] Animate appearance of share drop down --- apps/files_sharing/js/share.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 = "