Updated Branches: refs/heads/master 6266fcb8f -> 71355c194
cloudstack UI - advanced search - volume page - add domain dropdown, account field. Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/71355c19 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/71355c19 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/71355c19 Branch: refs/heads/master Commit: 71355c194118c17219159173988ccb7ef091bab0 Parents: 6266fcb Author: Jessica Wang <[email protected]> Authored: Tue Oct 2 11:18:11 2012 -0700 Committer: Jessica Wang <[email protected]> Committed: Tue Oct 2 15:40:00 2012 -0700 ---------------------------------------------------------------------- ui/scripts/storage.js | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/71355c19/ui/scripts/storage.js ---------------------------------------------------------------------- diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index c16e621..6d2b734 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' } },
