cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [43/50] [abbrv] git commit: updated refs/heads/disk-cache to 6f3e4d3
Date Wed, 20 Nov 2013 14:51:13 GMT
CLOUDSTACK-4793: UI > Virtual Routers > Advanced Search > add cluster dropdown since
API now supports it.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2587e42d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2587e42d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2587e42d

Branch: refs/heads/disk-cache
Commit: 2587e42db6b22d1825db2251d872e46ce91b5241
Parents: 876b7e4
Author: Jessica Wang <jessicawang@apache.org>
Authored: Mon Nov 18 15:00:58 2013 -0800
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Mon Nov 18 15:02:35 2013 -0800

----------------------------------------------------------------------
 ui/scripts/system.js | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2587e42d/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index a211a7f..405c5ce 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -7620,7 +7620,29 @@
                                     }
                                 });
                             }
-                        },                                                
+                        },                         
+                        clusterid: {
+                            label: 'label.cluster',    
+                            dependsOn: 'podid',
+                            select: function(args) {
+                                $.ajax({
+                                    url: createURL("listClusters&podid=" + args.podid),
+                                    dataType: "json",
+                                    async: false,
+                                    success: function(json) {
+                                        var clusters = json.listclustersresponse.cluster
? json.listclustersresponse.cluster : [];                                        
+                                        args.response.success({
+                                            data: $.map(clusters, function(cluster) {
+                                                return {
+                                                    id: cluster.id,
+                                                    description: cluster.name
+                                                };
+                                            })
+                                        });       
+                                    }
+                                });
+                            }
+                        },                          
                         domainid: {
                             label: 'Domain',
                             select: function(args) {


Mime
View raw message