The branch, master has been updated via 98066b6bcb0d25f87b718d7ee70ddfbe759b43ff (commit) from af0591e1904ecdf61714673f7955b15629aa369e (commit)
- Log ----------------------------------------------------------------- commit 98066b6bcb0d25f87b718d7ee70ddfbe759b43ff Author: Marc Delisle marc@infomarc.info Date: Sun Oct 31 17:30:33 2010 -0400
prefix for variable holding jQuery object; remove extra wrapping for the object
-----------------------------------------------------------------------
Summary of changes: js/server_privileges.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/js/server_privileges.js b/js/server_privileges.js index db0d609..f4fe3ae 100644 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -165,17 +165,17 @@ $(document).ready(function() { button_options[PMA_messages['strCreateUser']] = function() {
/** - * @var the_form stores reference to current form + * @var $form stores reference to current form */ - var the_form = $(this).find("#addUsersForm"); + var $form = $(this).find("#addUsersForm");
- if( ! checkAddUser($(the_form).get(0)) ) { + if( ! checkAddUser($form.get(0)) ) { PMA_ajaxShowMessage(PMA_messages['strFormEmpty']); return false; }
//We also need to post the value of the submit button in order to get this to work correctly - $.post($(the_form).attr('action'), $(the_form).serialize() + "&adduser_submit=" + $(this).find("input[name=adduser_submit]").attr('value'), function(data) { + $.post($form.attr('action'), $form.serialize() + "&adduser_submit=" + $(this).find("input[name=adduser_submit]").attr('value'), function(data) { if(data.success == true) { $("#add_user_dialog").dialog("close").remove(); PMA_ajaxShowMessage(data.message);
hooks/post-receive