Initials do not work if there are more than 50 users (the initial form is not present)

This commit is contained in:
Marc Delisle
2011-01-07 10:22:08 -05:00
parent 1be1e8bcee
commit 653debdc0e

View File

@@ -430,14 +430,13 @@ $(document).ready(function() {
PMA_ajaxShowMessage(); PMA_ajaxShowMessage();
$.get($(this).attr('href'), {'ajax_request' : true}, function(data) { $.get($(this).attr('href'), {'ajax_request' : true}, function(data) {
$("#usersForm") // This form is not on screen when first entering Privileges
.hide("medium") // if there are more than 50 users
.siblings("#initials_table") $("#usersForm").hide("medium").remove();
.after(data) $("#fieldset_add_user").hide("medium").remove();
.show("medium") $("#initials_table")
.end() .after(data).show("medium")
.remove(); .siblings("h2").not(":first").remove();
$("#initials_table").siblings("h2").not(":first").remove();
}) // end $.get }) // end $.get
})// end of the paginate users table })// end of the paginate users table