Explicit Dedication - Cluster UI-API Integration code

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

Branch: refs/heads/master
Commit: 9f76c0559c761e33bec98043cd573afc88473e1e
Parents: a52b313
Author: Pranav Saxena <pranav.sax...@citrix.com>
Authored: Mon May 27 15:44:02 2013 +0530
Committer: Pranav Saxena <pranav.sax...@citrix.com>
Committed: Thu May 30 21:57:12 2013 +0530

----------------------------------------------------------------------
 ui/scripts/system.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9f76c055/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 70fb0e7..45b0f43 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -9501,7 +9501,17 @@
                          dataType:"json",
                          success:function(json){
                              var jid = json.dedicateclusterresponse.jobid;
-                             args.response.success({  data: $.extend(item, 
dedicatedObj , {state:'Enabled'}) });
+                             //args.response.success({  data: $.extend(item, 
dedicatedObj , {state:'Enabled'}) });
+                              args.response.success({
+                                 _custom:
+                                   {      jobId: jid
+                                    },
+                                  notification: {
+                                    poll: pollAsyncJobResult
+                                    },
+
+                                  data:$.extend(item, {state:'Enabled'})
+                             });
 
                          },
 

Reply via email to