cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/4.3 to deae1a2
Date Fri, 03 Jan 2014 22:56:11 GMT
Updated Branches:
  refs/heads/4.3 849fdcf61 -> deae1a2d3


CLOUDSTACK-5771: UI > Infrastructure > SystemVMs page > listView Search > fix
a bug that UI kept spinning when there was no matching result.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/deae1a2d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/deae1a2d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/deae1a2d

Branch: refs/heads/4.3
Commit: deae1a2d34dbdd95d49837b13ff73b24c01dbd59
Parents: 849fdcf
Author: Jessica Wang <jessicawang@apache.org>
Authored: Fri Jan 3 14:55:53 2014 -0800
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Fri Jan 3 14:55:53 2014 -0800

----------------------------------------------------------------------
 ui/scripts/system.js | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/deae1a2d/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 87946ef..bf34742 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -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));
                                         }
                                     });
                                 },


Mime
View raw message