Updated Branches: refs/heads/master 2e0847bfe -> 65f5642be
CLOUDSTACK-3820: UI > Infrastructure menu > zone detail > UCS > blade - remove blade detailView since it's not used. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/65f5642b Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/65f5642b Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/65f5642b Branch: refs/heads/master Commit: 65f5642beae1d48e33abe0dad1364e347b820a47 Parents: 2e0847b Author: Jessica Wang <jessicaw...@apache.org> Authored: Thu Jul 25 16:41:17 2013 -0700 Committer: Jessica Wang <jessicaw...@apache.org> Committed: Thu Jul 25 16:42:22 2013 -0700 ---------------------------------------------------------------------- ui/scripts/system.js | 125 ++++++++++++---------------------------------- 1 file changed, 32 insertions(+), 93 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65f5642b/ui/scripts/system.js ---------------------------------------------------------------------- diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 0cca9b7..3d77980 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -14123,8 +14123,9 @@ zoneid: args.context.physicalResources[0].id }, success: function(json) { + //for testing only (begin) /* - json = //override json (for testing only) + json = { "listucsmanagerreponse": { "count": 1, @@ -14138,7 +14139,9 @@ ] } }; - */ + */ + //for testing only (end) + var items = json.listucsmanagerreponse.ucsmanager; args.response.success({ data: items }); } @@ -14258,24 +14261,24 @@ //for testing only (begin) /* - var data = [ - { - "id": "58c84a1d-6e46-44e3-b7ec-abaa876d1be3", - "ucsmanagerid": "0c96f848-4306-47e5-a9ac-b76aad3557fb", - "bladedn": "sys/chassis-1/blade-1" - }, - { - "id": "de5abadf-f294-4014-9fed-7ee37a9b8724", - "ucsmanagerid": "0c96f848-4306-47e5-a9ac-b76aad3557fb", - "bladedn": "sys/chassis-1/blade-2" - } - ]; - for(var i = 0; i < data.length; i++) { - var array1 = data[i].bladedn.split('/'); - data[i].chassis = array1[1]; - data[i].bladeid = array1[2]; - } - */ + var data = [ + { + "id": "58c84a1d-6e46-44e3-b7ec-abaa876d1be3", + "ucsmanagerid": "0c96f848-4306-47e5-a9ac-b76aad3557fb", + "bladedn": "sys/chassis-1/blade-1" + }, + { + "id": "de5abadf-f294-4014-9fed-7ee37a9b8724", + "ucsmanagerid": "0c96f848-4306-47e5-a9ac-b76aad3557fb", + "bladedn": "sys/chassis-1/blade-2" + } + ]; + for(var i = 0; i < data.length; i++) { + var array1 = data[i].bladedn.split('/'); + data[i].chassis = array1[1]; + data[i].bladeid = array1[2]; + } + */ //for testing only (end) @@ -14353,21 +14356,24 @@ bladeid: args.context.blades[0].id }, success: function(json) { - //for testing only, comment it out before check in (begin) + //for testing only (begin) + /* json = { "associateucsprofiletobladeresponse": { "jobid": "dff5fa7f-e4a7-457b-92f1-2fede357e3d5" } }; - //for testing only, comment it out before check in (end) + */ + //for testing only (end) var jid = json.associateucsprofiletobladeresponse.jobid; args.response.success({ _custom: { jobId: jid, getUpdatedItem: function(json) { - //for testing only, comment it out before check in (begin) + //for testing only (begin) + /* json = { "queryasyncjobresultresponse": { @@ -14389,7 +14395,8 @@ "jobid": "dff5fa7f-e4a7-457b-92f1-2fede357e3d5" } } - //for testing only, comment it out before check in (end) + */ + //for testing only (end) return json.queryasyncjobresultresponse.jobresult.ucsblade; } @@ -14404,75 +14411,7 @@ } } } - } - - /*, - detailView: { - name: 'blade details', - noCompact: true, - actions: { - associateProfileToBlade: { - label: 'Associate Profile to Blade', - messages: { - notification: function(args) { - return 'Associate Profile to Blade'; - } - }, - createForm: { - title: 'Associate Profile to Blade', - fields: { - profiledn: { - label: 'profile', - select: function(args) { - var items = []; - - items.push({id: 'profile_1', description: 'profile_1'}); - items.push({id: 'profile_2', description: 'profile_2'}); - items.push({id: 'profile_3', description: 'profile_3'}); - args.response.success({data: items}); - }, - validation: { required: true } - } - } - }, - action: function(args) { - args.response.success(); - }, - notification: { - poll: function(args) { - args.complete(); - } - } - } - }, - tabs: { - details: { - title: 'label.details', - - fields: [ - { - fieldA: { label: 'fieldA' } - }, - { - fieldB: { label: 'fieldB' } - } - ], - - dataProvider: function(args) { - args.response.success( - { - data: { - fieldA: 'fieldAAA', - fieldB: 'fieldBBB' - } - } - ); - } - } - } - } - */ - + } } } }