Projet

Général

Profil

0001-misc-add-possibility-to-mark-popup-links-with-data-p.patch

Frédéric Péters, 27 février 2020 18:05

Télécharger (899 octets)

Voir les différences:

Subject: [PATCH] misc: add possibility to mark popup links with data-popup
 (#40247)

 wcs/qommon/static/js/popup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/static/js/popup.js
44 44
}
45 45

  
46 46
$(function() {
47
    $('a[rel=popup]').click(displayPopup);
47
    $('a[rel=popup], a[data-popup]').click(displayPopup);
48 48
    $(document).on('wcs:dialog-loaded', function(e, dialog) {
49 49
        if ($(dialog).find('input[name$=add_element]').length) {
50 50
            prepare_widget_list_elements();
51
-