return sectionEl;
},
- renderHeaderRows: function(max_cols) {
+ renderHeaderRows: function(max_cols, has_action) {
var has_titles = false,
has_descriptions = false,
max_cols = isNaN(this.max_cols) ? this.children.length : this.max_cols,
trEls = E([]);
for (var i = 0, opt; i < max_cols && (opt = this.children[i]) != null; i++) {
- if (opt.optional || opt.modalonly)
+ if (opt.modalonly)
continue;
has_titles = has_titles || !!opt.title;
});
for (var i = 0, opt; i < max_cols && (opt = this.children[i]) != null; i++) {
- if (opt.optional || opt.modalonly)
+ if (opt.modalonly)
continue;
trEl.appendChild(E('div', {
L.dom.content(trEl.lastElementChild, opt.title);
}
- if (this.sortable || this.extedit || this.addremove || has_more)
+ if (this.sortable || this.extedit || this.addremove || has_more || has_action)
trEl.appendChild(E('div', {
'class': 'th cbi-section-table-cell cbi-section-actions'
}));
});
for (var i = 0, opt; i < max_cols && (opt = this.children[i]) != null; i++) {
- if (opt.optional || opt.modalonly)
+ if (opt.modalonly)
continue;
trEl.appendChild(E('div', {
}, (value != null) ? value : E('em', _('none')));
},
+ renderHeaderRows: function(section_id) {
+ return this.super('renderHeaderRows', [ NaN, true ]);
+ },
+
renderRowActions: function(section_id) {
return this.super('renderRowActions', [ section_id, _('Edit') ]);
},