Projet

Général

Profil

0001-backoffice-fix-detection-of-add-element-button-44686.patch

Frédéric Péters, 01 juillet 2020 17:09

Télécharger (965 octets)

Voir les différences:

Subject: [PATCH] backoffice: fix detection of "add element" button (#44686)

 wcs/qommon/static/js/popup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/static/js/popup.js
51 51
$(function() {
52 52
    $('a[rel=popup], a[data-popup]').click(displayPopup);
53 53
    $(document).on('wcs:dialog-loaded', function(e, dialog) {
54
        if ($(dialog).find('input[name$=add_element]').length) {
54
        if ($(dialog).find('[name$=add_element]').length) {
55 55
            prepare_widget_list_elements();
56 56
        }
57 57
        if (jQuery.fn.colourPicker !== undefined) {
58
-