From 8b72097fb0333b61da594fdf38361318c360333d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 5 Feb 2011 07:46:27 -0500 Subject: [PATCH] Unneeded wrapping of jQuery object --- js/sql.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/sql.js b/js/sql.js index 1cae3c515..843c37b5d 100644 --- a/js/sql.js +++ b/js/sql.js @@ -325,9 +325,12 @@ $(document).ready(function() { PMA_ajaxShowMessage(); - $.get($(this).attr('href'), $(this).serialize() + '&ajax_request=true', function(data) { - $("#sqlqueryresults").html(data); - $("#sqlqueryresults").trigger('appendAnchor'); + $anchor = $(this); + + $.get($anchor.attr('href'), $anchor.serialize() + '&ajax_request=true', function(data) { + $("#sqlqueryresults") + .html(data) + .trigger('appendAnchor'); }) // end $.get() })//end Sort results table