1
0
Fork 0

issue #999: clear old result when submitting new query

This commit is contained in:
Jan Steemann 2014-08-27 11:14:46 +02:00
parent 4568c094c9
commit 794b909e8b
1 changed files with 4 additions and 2 deletions

View File

@ -557,7 +557,6 @@
var inputEditor = ace.edit("aqlEditor"); var inputEditor = ace.edit("aqlEditor");
var selectedText = inputEditor.session.getTextRange(inputEditor.getSelectionRange()); var selectedText = inputEditor.session.getTextRange(inputEditor.getSelectionRange());
var sizeBox = $('#querySize'); var sizeBox = $('#querySize');
var data = { var data = {
query: selectedText || inputEditor.getValue(), query: selectedText || inputEditor.getValue(),
@ -565,6 +564,9 @@
}; };
var outputEditor = ace.edit("queryOutput"); var outputEditor = ace.edit("queryOutput");
// clear result
outputEditor.setValue('');
window.progressView.show("Query is operating..."); window.progressView.show("Query is operating...");
$.ajax({ $.ajax({
type: "POST", type: "POST",