Don't render action column if only header-level actions are present.
This commit is contained in:
bfederle 2012-06-05 13:26:57 -07:00
parent e0723cd9cc
commit 94f7023457
1 changed files with 2 additions and 2 deletions

View File

@ -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;
};