Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8CB01124B for ; Tue, 2 Sep 2014 20:55:50 +0000 (UTC) Received: (qmail 6475 invoked by uid 500); 2 Sep 2014 20:55:50 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 6444 invoked by uid 500); 2 Sep 2014 20:55:50 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 6435 invoked by uid 99); 2 Sep 2014 20:55:50 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 20:55:50 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 576BA9B07BF; Tue, 2 Sep 2014 20:55:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bfederle@apache.org To: commits@cloudstack.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/ui-internal-lb-subselect to c2e7f35 Date: Tue, 2 Sep 2014 20:55:50 +0000 (UTC) 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 Authored: Tue Sep 2 13:55:39 2014 -0700 Committer: Brian Federle 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);