cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/ui-internal-lb-subselect to c2e7f35
Date Tue, 02 Sep 2014 20:55:50 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/ui-internal-lb-subselect 2d5261a8e -> c2e7f358e


Add _subselect property


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

Branch: refs/heads/ui-internal-lb-subselect
Commit: c2e7f358eef63f092ca123e5bfd3b609224c91d0
Parents: 2d5261a
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Sep 2 13:55:39 2014 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Sep 2 13:55:39 2014 -0700

----------------------------------------------------------------------
 ui/scripts/vpc.js | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c2e7f358/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index 5d8639f..4981efe 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -1055,8 +1055,18 @@
                                                 }
                                             }),
                                             action: function(args) {
-                                                debugger;
+                                                var $rows = $(':ui-dialog .list-view tbody
tr');
                                                 var vms = args.context.instances;
+                                                
+                                                // Assign subselect values
+                                                $(vms).each(function() {
+                                                    var vm = this;
+                                                    var $vmRow = $rows.filter(function()
{
+                                                        return $(this).data('json-obj') ===
vm;
+                                                    });
+                                                    $.extend(vm, { _subselect: $vmRow.find('.subselect
select').val() });
+                                                });
+
                                                 var array1 = [];
                                                 for (var i = 0; i < vms.length; i++) {
                                                     array1.push(vms[i].id);


Mime
View raw message