cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: CS-15120
Date Tue, 05 Jun 2012 20:33:55 GMT
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 <bfederle@gmail.com>
Authored: Tue Jun 5 13:26:57 2012 -0700
Committer: Brian Federle <brian.federle@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;
   };
 


Mime
View raw message