From 626477ac8f1db0129f009f2e3076d71f053f81a0 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 1 May 2011 11:31:55 +0530 Subject: [PATCH] Bug #3295529 - SQL tab multiple AJAX requests on one click --- js/sql.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/sql.js b/js/sql.js index 77717a727..bd068cf4b 100644 --- a/js/sql.js +++ b/js/sql.js @@ -274,6 +274,8 @@ $(document).ready(function() { $('#sqlqueryresults').show(); // this happens if a USE command was typed if (typeof data.reload != 'undefined') { + // Unbind the submit event before reloading. See bug #3295529 + $("#sqlqueryform.ajax").die('submit'); $form.find('input[name=db]').val(data.db); // need to regenerate the whole upper part $form.find('input[name=ajax_request]').remove();