From c42da47aa6694f987e6fda36f65efbbdb208f9f5 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Thu, 30 May 2013 21:36:27 +0530 Subject: [PATCH] formatting the code for better readability --- ui/scripts/system.js | 39 ++++----------------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index c8c747dc180..3044c83771e 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -5477,12 +5477,10 @@ accountId:{ label:'Account', - // docID:'helpAccountForDedication', + docID:'helpAccountForDedication', validation:{required:false} } - - } }, @@ -5506,9 +5504,7 @@ }, actionFilter:zoneActionfilter - }); - } }); } @@ -8723,16 +8719,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 = []; @@ -8909,7 +8895,7 @@ accountId:{ label:'Account', - // docID:'helpAccountForDedication', + docID:'helpAccountForDedication', validation:{required:false} } @@ -9677,14 +9663,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){ @@ -9699,7 +9677,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 @@ -9900,7 +9877,7 @@ accountId:{ label:'Account', - // docID:'helpAccountForDedication', + docID:'helpAccountForDedication', validation:{required:false} } @@ -9927,8 +9904,6 @@ poll: pollAsyncJobResult }, actionFilter:clusterActionfilter - - }); } }); @@ -10804,7 +10779,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 @@ -10919,7 +10893,7 @@ }, accountId:{ label:'Account', - // docID:'helpAccountForDedication', + docID:'helpAccountForDedication', validation:{required:false} } @@ -10950,11 +10924,6 @@ }); - - /* args.response.success({ - actionFilter: podActionfilter, - data:item - });*/ } }); }