changeset 00b685811e6d in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=00b685811e6d
description:
Ensure more-cell always have a colspan attribute
issue11485
review423201003
diffstat:
src/view/tree.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r b4f0e27a3198 -r 00b685811e6d src/view/tree.js
--- a/src/view/tree.js Thu May 19 21:58:31 2022 +0200
+++ b/src/view/tree.js Thu May 19 22:18:45 2022 +0200
@@ -886,8 +886,6 @@
}
this.table.css('min-width', 'calc(' + min_width.join(' + ') + ')');
this.scrollbar.css('min-width', this.table.css('min-width'));
- this.tbody.find('tr.more-row > td').attr(
- 'colspan', visible_columns);
if (!this.table.hasClass('no-responsive') &
(this.columns.filter(function(c) {
@@ -917,7 +915,9 @@
var more_row = jQuery('<tr/>', {
'class': 'more-row',
});
- var more_cell = jQuery('<td/>');
+ var more_cell = jQuery('<td/>', {
+ 'colspan': visible_columns,
+ });
var more_button = jQuery('<button/>', {
'class': 'btn btn-default btn-block',
'type': 'button',