Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ABDBCFD0 for ; Tue, 5 Jun 2012 20:33:56 +0000 (UTC) Received: (qmail 38669 invoked by uid 500); 5 Jun 2012 20:33:55 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 38470 invoked by uid 500); 5 Jun 2012 20:33:55 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 38395 invoked by uid 99); 5 Jun 2012 20:33:55 -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, 05 Jun 2012 20:33:55 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 547B210086; Tue, 5 Jun 2012 20:33:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bfederle@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: CS-15120 Message-Id: <20120605203355.547B210086@tyr.zones.apache.org> Date: Tue, 5 Jun 2012 20:33:55 +0000 (UTC) Updated Branches: refs/heads/3.0.x-asf [created] 0d8d30548 CS-15120 Don't render action column if only header-level actions are present. Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0d8d3054 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0d8d3054 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0d8d3054 Branch: refs/heads/3.0.x-asf Commit: 0d8d305489277953a55f2f832c88bcf360296aa1 Parents: f66ddd3 Author: bfederle Authored: Tue Jun 5 13:26:57 2012 -0700 Committer: Brian Federle Committed: Tue Jun 5 13:33:01 2012 -0700 ---------------------------------------------------------------------- ui/scripts/ui/widgets/listView.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0d8d3054/ui/scripts/ui/widgets/listView.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js index d898742..734d3a4 100644 --- a/ui/scripts/ui/widgets/listView.js +++ b/ui/scripts/ui/widgets/listView.js @@ -545,9 +545,9 @@ var renderActionCol = function(actions) { return $.grep( $.map(actions, function(value, key) { - return key; + return { key: key, value: value }; }), - function(elem) { return elem != 'add'; } + function(elem) { return elem.key != 'add' && !elem.value.isHeader; } ).length; };