diff --git a/js/server_privileges.js b/js/server_privileges.js index 332ad6b85..7b30ccf2e 100644 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -174,7 +174,7 @@ $(document).ready(function() { /** * @var $form stores reference to current form */ - var $form = $(this).find("#addUsersForm"); + var $form = $(this).find("form[name=usersForm]").last(); if( ! checkAddUser($form.get(0)) ) { PMA_ajaxShowMessage(PMA_messages['strFormEmpty']); @@ -211,7 +211,7 @@ $(document).ready(function() { .prepend(data) .find("#fieldset_add_user_footer").hide() //showing the "Go" and "Create User" buttons together will confuse the user .end() - .find("#addUsersForm").append('') + .find("form[name=usersForm]").append('') .end() .dialog({ title: PMA_messages['strAddNewUser'],