From d36850f0f2b507b566e57de3befb3fb8e2dd5c5a Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Wed, 27 Jul 2011 19:52:10 -0400 Subject: [PATCH] Close sharing dialog box on share success --- apps/files_sharing/js/share.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index e5977c30a91..c77c2aa77db 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -1,7 +1,7 @@ $(document).ready(function() { $('.share').click(function(event) { event.preventDefault(); - var html = "
"; + var html = "
"; html += ""; html += ""; html += "
"; @@ -80,7 +80,10 @@ $(document).ready(function() { type: 'GET', url: '../apps/files_sharing/ajax/share.php', cache: false, - data: data + data: data, + success: function() { + $('#dialog').dialog('close'); + } }); } });