changeset e182df2dddf7 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset&node=e182df2dddf7
description:
Ensure more-cell always have a colspan attribute
issue11485
review423201003
(grafted from 00b685811e6df2ae00c0bc6c5ea1822d6a60d28a)
diffstat:
src/view/tree.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r c55b81b597f7 -r e182df2dddf7 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
@@ -801,8 +801,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) {
@@ -832,7 +830,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',