From 473181a8a3e773711bc8adcbe05c1918b4120457 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 31 Oct 2010 18:06:44 -0400 Subject: [PATCH] prefix for variable holding jQuery object; remove extra wrapping for the object --- js/tbl_change.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/tbl_change.js b/js/tbl_change.js index b38eeac2d..14fd11a38 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -302,9 +302,9 @@ $(document).ready(function() { .after(data.sql_query); //Remove the empty notice div generated due to a NULL query passed to PMA_showMessage() - var notice_class = $("#topmenucontainer").next("div").find('.notice'); - if($(notice_class).text() == '') { - $(notice_class).remove(); + var $notice_class = $("#topmenucontainer").next("div").find('.notice'); + if ($notice_class.text() == '') { + $notice_class.remove(); } var submit_type = $form.find("select[name='submit_type']").val();