You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ki...@apache.org on 2012/10/17 10:50:11 UTC

[12/50] [abbrv] git commit: cloudstack UI - advanced search - volume page - add domain dropdown, account field.

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/regions
Commit: 71355c194118c17219159173988ccb7ef091bab0
Parents: 6266fcb
Author: Jessica Wang <je...@citrix.com>
Authored: Tue Oct 2 11:18:11 2012 -0700
Committer: Jessica Wang <je...@citrix.com>
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' }						
 					},