From d8bb324c6b1a624c3868acd072dc0b854a6e64a4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 1 Feb 2011 07:49:25 -0500 Subject: [PATCH] Unneeded wrapping of jQuery object --- js/functions.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/functions.js b/js/functions.js index f4a939b87..74a4fb8d0 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1837,16 +1837,17 @@ $(document).ready(function() { $(".drop_trigger_anchor").live('click', function(event) { event.preventDefault(); + $anchor = $(this); /** * @var curr_row Object reference to the current trigger's */ - var curr_row = $(this).parents('tr'); + var $curr_row = $anchor.parents('tr'); /** * @var question String containing the question to be asked for confirmation */ - var question = 'DROP TRIGGER IF EXISTS `' + $(curr_row).children('td:first').text() + '`'; + var question = 'DROP TRIGGER IF EXISTS `' + $curr_row.children('td:first').text() + '`'; - $(this).PMA_confirm(question, $(this).attr('href'), function(url) { + $anchor.PMA_confirm(question, $anchor.attr('href'), function(url) { PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']); $.get(url, {'is_js_confirmed': 1, 'ajax_request': true}, function(data) { @@ -1857,7 +1858,7 @@ $(document).ready(function() { .remove() .end() .after(data.sql_query); - $(curr_row).hide("medium").remove(); + $curr_row.hide("medium").remove(); } else { PMA_ajaxShowMessage(data.error); -- 2.11.4.GIT