cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [29/50] [abbrv] git commit: updated refs/heads/ui-mixed-zone-management to 7efbcfa
Date Wed, 10 Apr 2013 17:46:09 GMT
adding error handling mechanism to scale up vm functionality


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

Branch: refs/heads/ui-mixed-zone-management
Commit: 499bc6306e11e8ca74931b733d7717ac09fff5b7
Parents: 97c2f7d
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Wed Apr 10 11:43:59 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Wed Apr 10 11:43:59 2013 +0530

----------------------------------------------------------------------
 ui/scripts/instances.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/499bc630/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index 80c1634..1c4c38c 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -1084,7 +1084,7 @@
             label:'scaleUp VM',
             action: function(args) {
               $.ajax({
-                url: createURL("scaleVirtualMachine&id=" + args.context.instances[0].id),
+                url: createURL("scaleVirtualMachine&id=" + args.context.instances[0].id
+ "&serviceofferingid=" + args.context.instances[0].serviceofferingid),
                 dataType: "json",
                 async: true,
                 success: function(json) {
@@ -1101,7 +1101,11 @@
                      }
                     }
                   );
+                },
+                 error:function(json){
+                     args.response.error(parseXMLHttpResponse(json));
                 }
+
               });
             },
             messages: {


Mime
View raw message