Disable query executing if its already in progress

This commit is contained in:
Dan Sosedoff
2014-10-13 20:12:13 -05:00
parent 5dd26cd8d0
commit 9ff9af6f11
3 changed files with 18 additions and 1 deletions

View File

@@ -143,8 +143,14 @@ function showTableStructure() {
function runQuery() {
setCurrentTab("table_query");
$("#run").attr("disabled", "disabled");
$("#query_progress").show();
executeQuery(editor.getValue(), function(data) {
buildTable(data);
$("#run").removeAttr("disabled");
$("#query_progress").hide();
$("#input").show();
$("#output").removeClass("full");
});