You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2013/04/11 01:09:48 UTC
[25/50] git commit: updated refs/heads/internallb to ed0cb2f
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/1e2370de
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1e2370de
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1e2370de
Branch: refs/heads/internallb
Commit: 1e2370def480ba5c3591512d3f0bea4abdd5a3be
Parents: cbc2d3a
Author: Pranav Saxena <pr...@citrix.com>
Authored: Wed Apr 10 11:43:59 2013 +0530
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Wed Apr 10 15:44:04 2013 -0700
----------------------------------------------------------------------
ui/scripts/instances.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1e2370de/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: {