1
0
Fork 0

fixed never-disappearing "query is operating" display

This commit is contained in:
Jan Steemann 2014-11-26 10:49:00 +01:00
parent a4e052465e
commit 8f0b5cbe05
1 changed files with 1 additions and 2 deletions

View File

@ -589,7 +589,6 @@
"Query is operating..."
);
$.ajax({
type: "POST",
url: "/_api/cursor",
@ -598,7 +597,7 @@
processData: false,
success: function (data) {
var warnings = "";
if (data.extra.warnings.length > 0) {
if (data.extra && data.extra.warnings && data.extra.warnings.length > 0) {
warnings += "Warnings:" + "\r\n\r\n";
data.extra.warnings.forEach(function(w) {
warnings += "[" + w.code + "], '" + w.message + "'\r\n";