cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [1/50] [abbrv] git commit: refs/heads/affinity_groups - Regions UI: Add error handling to API calls
Date Thu, 14 Mar 2013 22:35:18 GMT
Regions UI: Add error handling to API calls


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

Branch: refs/heads/affinity_groups
Commit: d55ccc8a6095be5eb6e969d081d1978a34397228
Parents: 9172a22
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Feb 26 16:21:13 2013 -0800
Committer: Prachi Damle <prachi@cloud.com>
Committed: Thu Mar 14 15:11:54 2013 -0700

----------------------------------------------------------------------
 ui/scripts/regions.js |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d55ccc8a/ui/scripts/regions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/regions.js b/ui/scripts/regions.js
index a5ff1e9..6c0da68 100644
--- a/ui/scripts/regions.js
+++ b/ui/scripts/regions.js
@@ -65,7 +65,10 @@
 
                 args.response.success({ _custom: { jobId: jobID }});
                 $(window).trigger('cloudStack.refreshRegions');
-              }
+              },
+              error: function(json) {
+                args.response.error(parseXMLHttpResponse(json));
+              } 
             });
           }
         }
@@ -79,7 +82,10 @@
             args.response.success({
               data: regions ? regions : []
             });
-          }
+          },
+          error: function(json) {
+            args.response.error(parseXMLHttpResponse(json));
+          } 
         });
       },
       detailView: {
@@ -94,7 +100,10 @@
                 success: function(json) {
                   args.response.success();
                   $(window).trigger('cloudStack.refreshRegions');
-                }
+                },
+                error: function(json) {
+                  args.response.error(parseXMLHttpResponse(json));
+                } 
               });
             }
           },
@@ -113,7 +122,10 @@
                 success: function(json) {
                   args.response.success();
                   $(window).trigger('cloudStack.refreshRegions');
-                }
+                },
+                error: function(json) {
+                  args.response.error(parseXMLHttpResponse(json));
+                } 
               });
             }
           }
@@ -140,7 +152,10 @@
                   args.response.success({
                     data: region ? region[0] : {}
                   });
-                }
+                },
+                error: function(json) {
+                  args.response.error(parseXMLHttpResponse(json));
+                } 
               });  
             }
           }


Mime
View raw message