From a7e77314afa03120dd02b0cc35154eb1fd22cd36 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Mon, 21 Jun 2010 03:18:21 +0530 Subject: [PATCH] Ajaxified Export Privileges with jQueryUI dialog --- js/server_privileges.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/js/server_privileges.js b/js/server_privileges.js index 92b39fcac..d1c164b09 100755 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -196,4 +196,22 @@ $(document).ready(function() { }) }) // end Revoke User + //Export Privileges + $(".export_user_anchor").live('click', function(event) { + event.preventDefault(); + + PMA_ajaxShowMessage(); + + $.get($(this).attr('href'), {'ajax_request': true}, function(data) { + $('
') + .prepend(data) + .dialog({ + width : 500, + buttons: { "Close" : function() { + $(this).dialog("close"); + }} + }); + }) //end $.get + }) //end export privileges + }); //end $(document).ready() \ No newline at end of file