mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-5771: UI > Infrastructure > SystemVMs page > listView Search > fix a bug that UI kept spinning when there was no matching result.
This commit is contained in:
parent
ab42f74470
commit
e5283e966e
@ -7873,7 +7873,7 @@
|
|||||||
data: data,
|
data: data,
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
var systemvmObjs = json.listsystemvmsresponse.systemvm;
|
var systemvmObjs = json.listsystemvmsresponse.systemvm;
|
||||||
if (systemvmObjs != null) {
|
if (systemvmObjs != undefined) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listHosts&listAll=true"),
|
url: createURL("listHosts&listAll=true"),
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
@ -7889,15 +7889,13 @@
|
|||||||
args.response.success({
|
args.response.success({
|
||||||
data: systemvmObjs
|
data: systemvmObjs
|
||||||
});
|
});
|
||||||
},
|
|
||||||
error: function(json) {
|
|
||||||
args.response.error(parseXMLHttpResponse(json));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
args.response.success({
|
||||||
|
data: []
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
|
||||||
error: function(json) {
|
|
||||||
args.response.error(parseXMLHttpResponse(json));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user