Fixed a bug with the checkAddUser call. The function is called properly
now.
This commit is contained in:
@@ -112,7 +112,6 @@ $(document).ready(function() {
|
|||||||
* Attach AJAX event handlers to 'Add a New User'
|
* Attach AJAX event handlers to 'Add a New User'
|
||||||
*
|
*
|
||||||
* @todo create standard options for dialog boxes
|
* @todo create standard options for dialog boxes
|
||||||
* @todo hook in checkAddUser()
|
|
||||||
*/
|
*/
|
||||||
$("#fieldset_add_user a").live("click", function(event) {
|
$("#fieldset_add_user a").live("click", function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@@ -131,13 +130,12 @@ $(document).ready(function() {
|
|||||||
title: PMA_messages['strAddNewUser'],
|
title: PMA_messages['strAddNewUser'],
|
||||||
width: 800,
|
width: 800,
|
||||||
modal: true,
|
modal: true,
|
||||||
buttons: { "Create User" : function() {
|
buttons: {"Create User" : function() {
|
||||||
|
|
||||||
|
|
||||||
var the_form = $(this).find("#addUsersForm");
|
var the_form = $(this).find("#addUsersForm");
|
||||||
|
|
||||||
if(!checkAddUser($(the_form).get(0))) {
|
if( ! checkAddUser($(the_form).get(0)) ) {
|
||||||
PMA_ajaxShowMessage(PMA_messages['strFormIncomplete']);
|
PMA_ajaxShowMessage(PMA_messages['strFormEmpty']);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user