Fixed a bug with the checkAddUser call. The function is called properly

now.
This commit is contained in:
ninadsp
2010-06-23 11:13:10 +05:30
parent f56758e50e
commit a8073a1875

View File

@@ -112,7 +112,6 @@ $(document).ready(function() {
* Attach AJAX event handlers to 'Add a New User'
*
* @todo create standard options for dialog boxes
* @todo hook in checkAddUser()
*/
$("#fieldset_add_user a").live("click", function(event) {
event.preventDefault();
@@ -133,11 +132,10 @@ $(document).ready(function() {
modal: true,
buttons: {"Create User" : function() {
var the_form = $(this).find("#addUsersForm");
if( ! checkAddUser($(the_form).get(0)) ) {
PMA_ajaxShowMessage(PMA_messages['strFormIncomplete']);
PMA_ajaxShowMessage(PMA_messages['strFormEmpty']);
return false;
}