1
0
Fork 0

removed download query button if current query is broken

This commit is contained in:
Heiko Kernbach 2014-11-07 16:02:21 +01:00
parent 912a9d2026
commit e7132b2009
1 changed files with 7 additions and 1 deletions

View File

@ -580,12 +580,16 @@
// clear result
outputEditor.setValue('');
window.progressView.show(
/*window.progressView.show(
"Query is operating...",
self.abortQuery("id"),
'<button class="button-danger">Abort Query</button>'
);*/
window.progressView.show(
"Query is operating..."
);
$.ajax({
type: "POST",
url: "/_api/cursor",
@ -597,9 +601,11 @@
self.switchTab("result-switch");
window.progressView.hide();
self.deselect(outputEditor);
$('#downloadQueryResult').show();
},
error: function (data) {
self.switchTab("result-switch");
$('#downloadQueryResult').hide();
try {
var temp = JSON.parse(data.responseText);
outputEditor.setValue('[' + temp.errorNum + '] ' + temp.errorMessage);