Projet

Général

Profil

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

Frédéric Péters, 16 juillet 2019 16:17

Télécharger (914 octets)

Voir les différences:

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

 gadjo/static/js/gadjo.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
gadjo/static/js/gadjo.js
319 319
        return sidepage_status;
320 320
      }
321 321

  
322
      $(document).on('click.gadjo', 'a[rel=popup]', displayPopup);
322
      $(document).on('click.gadjo', 'a[rel=popup], a[data-popup]', displayPopup);
323 323
      if ($('#sidepage').length) {
324 324
        var sidepage_button = $('#sidepage #applabel');
325 325
        sidepage_button.on('click', function() {
326
-