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