From 38ca2f2d8a6341b6c8b1de392bde7f3d3f4dc099 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Tue, 29 Mar 2011 12:45:18 -0400 Subject: [PATCH] Patch #3253811 Cannot add a new user --- js/server_privileges.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'],