You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2013/05/30 18:07:11 UTC
git commit: updated refs/heads/UI-explicitDedication to 8e7d4cf
Updated Branches:
refs/heads/UI-explicitDedication b4e296213 -> 8e7d4cf0c
formatting the code for better readability
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8e7d4cf0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8e7d4cf0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8e7d4cf0
Branch: refs/heads/UI-explicitDedication
Commit: 8e7d4cf0c5959188245df3037e6028c885c50597
Parents: b4e2962
Author: Pranav Saxena <pr...@citrix.com>
Authored: Thu May 30 21:36:27 2013 +0530
Committer: Pranav Saxena <pr...@citrix.com>
Committed: Thu May 30 21:36:27 2013 +0530
----------------------------------------------------------------------
ui/scripts/system.js | 39 ++++-----------------------------------
1 files changed, 4 insertions(+), 35 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8e7d4cf0/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index bad6920..6335fcc 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -4944,12 +4944,10 @@
accountId:{
label:'Account',
- // docID:'helpAccountForDedication',
+ docID:'helpAccountForDedication',
validation:{required:false}
}
-
-
}
},
@@ -4973,9 +4971,7 @@
},
actionFilter:zoneActionfilter
-
});
-
}
});
}
@@ -8188,16 +8184,6 @@
var item = json.createpodresponse.pod;
podId = json.createpodresponse.pod.id;
- /* args.response.success({
- data:item
- });
- },
- error: function(XMLHttpResponse) {
- var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
- args.response.error(errorMsg);
- }
- });*/
-
//EXPLICIT DEDICATION
if(args.$form.find('.form-item[rel=isDedicated]').find('input[type=checkbox]').is(':Checked')== true){
var array2 = [];
@@ -8374,7 +8360,7 @@
accountId:{
label:'Account',
- // docID:'helpAccountForDedication',
+ docID:'helpAccountForDedication',
validation:{required:false}
}
@@ -9142,14 +9128,6 @@
success: function(json) {
var item = json.addclusterresponse.cluster[0];
clusterId= json.addclusterresponse.cluster[0].id;
- /* args.response.success({
- data: $.extend(item, { state: 'Enabled' })
- });
- },
- error: function(XMLHttpResponse) {
- var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
- args.response.error(errorMsg);
- }*/
//EXPLICIT DEDICATION
if(args.$form.find('.form-item[rel=isDedicated]').find('input[type=checkbox]').is(':Checked')== true){
@@ -9164,7 +9142,6 @@
dataType:"json",
success:function(json){
var jid = json.dedicateclusterresponse.jobid;
- //args.response.success({ data: $.extend(item, dedicatedObj , {state:'Enabled'}) });
args.response.success({
_custom:
{ jobId: jid
@@ -9365,7 +9342,7 @@
accountId:{
label:'Account',
- // docID:'helpAccountForDedication',
+ docID:'helpAccountForDedication',
validation:{required:false}
}
@@ -9392,8 +9369,6 @@
poll: pollAsyncJobResult
},
actionFilter:clusterActionfilter
-
-
});
}
});
@@ -10269,7 +10244,6 @@
dataType:"json",
success:function(json){
var jid = json.dedicatehostresponse.host.jobid;
- //args.response.success({ data: $.extend(item, dedicatedObj) });
args.response.success({
_custom:
{ jobId: jid
@@ -10384,7 +10358,7 @@
},
accountId:{
label:'Account',
- // docID:'helpAccountForDedication',
+ docID:'helpAccountForDedication',
validation:{required:false}
}
@@ -10415,11 +10389,6 @@
});
-
- /* args.response.success({
- actionFilter: podActionfilter,
- data:item
- });*/
}
});
}