diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index e5977c30a9..c77c2aa77d 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'); + } }); } });