Updated Branches: refs/heads/3.0.x f66ddd380 -> 8a8736cba
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/8a8736cb Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8a8736cb Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8a8736cb Branch: refs/heads/3.0.x Commit: 8a8736cba1be6a89914ffc42bfd48a64b469ab62 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:35:28 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/8a8736cb/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; };
