You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2012/06/05 22:33:55 UTC

git commit: CS-15120

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 <bf...@gmail.com>
Authored: Tue Jun 5 13:26:57 2012 -0700
Committer: Brian Federle <br...@citrix.com>
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;
   };