You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/04/10 19:46:09 UTC
[29/50] [abbrv] git commit: updated
refs/heads/ui-mixed-zone-management to 7efbcfa
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 <pr...@citrix.com>
Authored: Wed Apr 10 11:43:59 2013 +0530
Committer: Pranav Saxena <pr...@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: {