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 <[email protected]> Authored: Tue Jun 5 13:26:57 2012 -0700 Committer: Brian Federle <[email protected]> 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; };
