mirror of https://gitee.com/bigwinds/arangodb
removed download query button if current query is broken
This commit is contained in:
parent
912a9d2026
commit
e7132b2009
|
@ -580,12 +580,16 @@
|
||||||
// clear result
|
// clear result
|
||||||
outputEditor.setValue('');
|
outputEditor.setValue('');
|
||||||
|
|
||||||
window.progressView.show(
|
/*window.progressView.show(
|
||||||
"Query is operating...",
|
"Query is operating...",
|
||||||
self.abortQuery("id"),
|
self.abortQuery("id"),
|
||||||
'<button class="button-danger">Abort Query</button>'
|
'<button class="button-danger">Abort Query</button>'
|
||||||
|
);*/
|
||||||
|
window.progressView.show(
|
||||||
|
"Query is operating..."
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/_api/cursor",
|
url: "/_api/cursor",
|
||||||
|
@ -597,9 +601,11 @@
|
||||||
self.switchTab("result-switch");
|
self.switchTab("result-switch");
|
||||||
window.progressView.hide();
|
window.progressView.hide();
|
||||||
self.deselect(outputEditor);
|
self.deselect(outputEditor);
|
||||||
|
$('#downloadQueryResult').show();
|
||||||
},
|
},
|
||||||
error: function (data) {
|
error: function (data) {
|
||||||
self.switchTab("result-switch");
|
self.switchTab("result-switch");
|
||||||
|
$('#downloadQueryResult').hide();
|
||||||
try {
|
try {
|
||||||
var temp = JSON.parse(data.responseText);
|
var temp = JSON.parse(data.responseText);
|
||||||
outputEditor.setValue('[' + temp.errorNum + '] ' + temp.errorMessage);
|
outputEditor.setValue('[' + temp.errorNum + '] ' + temp.errorMessage);
|
||||||
|
|
Loading…
Reference in New Issue