Patch #3253811 Cannot add a new user

This commit is contained in:
Rouslan Placella
2011-03-29 12:45:18 -04:00
committed by Marc Delisle
parent a47d29221c
commit 38ca2f2d8a

View File

@@ -174,7 +174,7 @@ $(document).ready(function() {
/** /**
* @var $form stores reference to current form * @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)) ) { if( ! checkAddUser($form.get(0)) ) {
PMA_ajaxShowMessage(PMA_messages['strFormEmpty']); PMA_ajaxShowMessage(PMA_messages['strFormEmpty']);
@@ -211,7 +211,7 @@ $(document).ready(function() {
.prepend(data) .prepend(data)
.find("#fieldset_add_user_footer").hide() //showing the "Go" and "Create User" buttons together will confuse the user .find("#fieldset_add_user_footer").hide() //showing the "Go" and "Create User" buttons together will confuse the user
.end() .end()
.find("#addUsersForm").append('<input type="hidden" name="ajax_request" value="true" />') .find("form[name=usersForm]").append('<input type="hidden" name="ajax_request" value="true" />')
.end() .end()
.dialog({ .dialog({
title: PMA_messages['strAddNewUser'], title: PMA_messages['strAddNewUser'],