Projet

Général

Profil

0001-misc-fix-add-row-javascript-handling-for-multiline-t.patch

Frédéric Péters, 27 mai 2015 11:45

Télécharger (1,03 ko)

Voir les différences:

Subject: [PATCH] misc: fix "add row" javascript handling for multiline tables
 (#7374)

 wcs/qommon/static/js/widget_list.js | 4 ++++
 1 file changed, 4 insertions(+)
wcs/qommon/static/js/widget_list.js
10 10
                if (row.tagName == 'BR') {
11 11
                    row = $(row).prev()[0];
12 12
                }
13
                if (row.tagName == 'TABLE') {
14
                    row = $(row).find('tr:last');
15
                    console.log('row:', row);
16
                }
13 17

  
14 18
                if ($(row).find('input[name$=add_element]').length > 0) {
15 19
                    /* this has several levels of widget lists, don't use
16
-