changeset 290fa1584024 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=290fa1584024
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 c3988bee232c -r 290fa1584024 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
@@ -728,8 +728,6 @@
             }.bind(this));
             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) {
@@ -759,7 +757,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'

Reply via email to