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:
Jessica Wang 2014-01-03 14:55:53 -08:00
parent 849fdcf61a
commit deae1a2d34
1 changed files with 5 additions and 7 deletions

View File

@ -7314,7 +7314,7 @@
data: data,
success: function(json) {
var systemvmObjs = json.listsystemvmsresponse.systemvm;
if (systemvmObjs != null) {
if (systemvmObjs != undefined) {
$.ajax({
url: createURL("listHosts&listAll=true"),
success: function(json) {
@ -7330,15 +7330,13 @@
args.response.success({
data: systemvmObjs
});
},
error: function(json) {
args.response.error(parseXMLHttpResponse(json));
}
});
} else {
args.response.success({
data: []
});
}
},
error: function(json) {
args.response.error(parseXMLHttpResponse(json));
}
});
},