Using $().live instead of $().click to bind event handlers
This commit is contained in:
@@ -98,12 +98,12 @@ function suggestPassword(passwd_form) {
|
|||||||
* Add all AJAX scripts for server_privileges page here.
|
* Add all AJAX scripts for server_privileges page here.
|
||||||
*
|
*
|
||||||
* Actions to be ajaxified here:
|
* Actions to be ajaxified here:
|
||||||
* Add a new user
|
* Add a new user - submission of form to be handled
|
||||||
* Revoke a user (and also drop databases with same name as user)
|
* Revoke a user (and also drop databases with same name as user) - #fieldset_delete_user #buttonGo - confirm, ajax post.
|
||||||
* Edit privileges
|
* Edit privileges - no id/class yet. 7th col in table - use dialog, submit form
|
||||||
* Export privileges
|
* 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
|
* Paginate table of users - use ajax, replace #usersForm
|
||||||
* Flush privileges
|
* Flush privileges - done!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
@@ -113,7 +113,7 @@ $(document).ready(function() {
|
|||||||
*
|
*
|
||||||
* @todo create standard options for dialog boxes
|
* @todo create standard options for dialog boxes
|
||||||
*/
|
*/
|
||||||
$("#fieldset_add_user a").click(function(event) {
|
$("#fieldset_add_user a").live("click", function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
PMA_ajaxShowMessage();
|
PMA_ajaxShowMessage();
|
||||||
@@ -138,7 +138,7 @@ $(document).ready(function() {
|
|||||||
/**
|
/**
|
||||||
* Attach Ajax event handler to 'Reload Privileges' anchor
|
* Attach Ajax event handler to 'Reload Privileges' anchor
|
||||||
*/
|
*/
|
||||||
$("#reload_privileges_anchor").click(function(event) {
|
$("#reload_privileges_anchor").live("click", function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
PMA_ajaxShowMessage("Reloading Privileges");
|
PMA_ajaxShowMessage("Reloading Privileges");
|
||||||
|
Reference in New Issue
Block a user