The branch, master has been updated
via 1c9ec217920f5d463637b9aa9a9f0ea640b7b317 (commit)
from be5b3b5c6460868f2353ae2211d9a9a0c5f064aa (commit)
- Log -----------------------------------------------------------------
commit 1c9ec217920f5d463637b9aa9a9f0ea640b7b317
Author: Marc Delisle <marc(a)infomarc.info>
Date: Sun Oct 31 07:37:15 2010 -0400
unnecessary wrapping of a jQuery object; add $ as object prefix
-----------------------------------------------------------------------
Summary of changes:
js/tbl_change.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/js/tbl_change.js b/js/tbl_change.js
index 700995c..51aa788 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -282,15 +282,15 @@ $(document).ready(function() {
/**
* @var the_form Object referring to the insertion form
*/
- var the_form = $(this);
+ var $form = $(this);
event.preventDefault();
PMA_ajaxShowMessage();
- if (! the_form.find('input:hidden').is('#ajax_request_hidden'))
{
- the_form.append('<input type="hidden"
id="ajax_request_hidden" name="ajax_request" value="true"
/>');
+ if (! $form.find('input:hidden').is('#ajax_request_hidden')) {
+ $form.append('<input type="hidden"
id="ajax_request_hidden" name="ajax_request" value="true"
/>');
}
- $.post($(the_form).attr('action'), $(the_form).serialize(),
function(data) {
+ $.post($form.attr('action'), $form.serialize(), function(data) {
if(data.success == true) {
PMA_ajaxShowMessage(data.message);
@@ -306,10 +306,10 @@ $(document).ready(function() {
$(notice_class).remove();
}
- var submit_type =
the_form.find("select[name='submit_type']").val();
+ var submit_type =
$form.find("select[name='submit_type']").val();
if ('insert' == submit_type || 'insertignore' ==
submit_type) {
//Clear the data in the forms
- $(the_form).find('input:reset').trigger('click');
+ $form.find('input:reset').trigger('click');
}
}
else {
hooks/post-receive
--
phpMyAdmin
Show replies by date