From 71355c194118c17219159173988ccb7ef091bab0 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 2 Oct 2012 11:18:11 -0700 Subject: [PATCH] cloudstack UI - advanced search - volume page - add domain dropdown, account field. --- ui/scripts/storage.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index c16e6213c4e..6d2b734ed74 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -73,7 +73,32 @@ } }); } + }, + + domainid: { + label: 'Domain', + select: function(args) { + $.ajax({ + url: createURL('listDomains'), + data: { + listAll: true, + details: 'min' + }, + success: function(json) { + args.response.success({ + data: $.map(json.listdomainsresponse.domain, function(domain) { + return { + id: domain.id, + description: domain.path + }; + }) + }); + } + }); + } }, + account: { label: 'Account' }, + tagKey: { label: 'Tag Key' }, tagValue: { label: 'Tag Value' } },