From 3bb4dbd0acc962969000cd2d0dab230d858dc28c Mon Sep 17 00:00:00 2001 From: ninadsp Date: Sun, 30 May 2010 23:27:13 +0530 Subject: [PATCH] Using $().live instead of $().click to bind event handlers --- js/server_privileges.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/server_privileges.js b/js/server_privileges.js index 0d4a6fe54..8b8873b26 100755 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -98,12 +98,12 @@ function suggestPassword(passwd_form) { * Add all AJAX scripts for server_privileges page here. * * Actions to be ajaxified here: - * Add a new user - * Revoke a user (and also drop databases with same name as user) - * Edit privileges - * Export privileges - * Paginate table of users - * Flush privileges + * Add a new user - submission of form to be handled + * Revoke a user (and also drop databases with same name as user) - #fieldset_delete_user #buttonGo - confirm, ajax post. + * Edit privileges - no id/class yet. 7th col in table - use dialog, submit form + * Export privileges - no id/class yet. 8th col in table - use ajax and load response. new div container necessary for response + * Paginate table of users - use ajax, replace #usersForm + * Flush privileges - done! */ $(document).ready(function() { @@ -113,7 +113,7 @@ $(document).ready(function() { * * @todo create standard options for dialog boxes */ - $("#fieldset_add_user a").click(function(event) { + $("#fieldset_add_user a").live("click", function(event) { event.preventDefault(); PMA_ajaxShowMessage(); @@ -138,7 +138,7 @@ $(document).ready(function() { /** * Attach Ajax event handler to 'Reload Privileges' anchor */ - $("#reload_privileges_anchor").click(function(event) { + $("#reload_privileges_anchor").live("click", function(event) { event.preventDefault(); PMA_ajaxShowMessage("Reloading Privileges");