Projet

Général

Profil

0001-arles-2020-ignore-items-with-no-image-url-defined-60.patch

Serghei Mihai, 17 janvier 2022 17:32

Télécharger (1,06 ko)

Voir les différences:

Subject: [PATCH] arles-2020: ignore items with no image url defined (#60743)

 .../arles-2020/qommon/forms/widgets/select--with-images.html    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
templates/variants/arles-2020/qommon/forms/widgets/select--with-images.html
39 39
      var $options = $select.find('option');
40 40
      var $items = $();
41 41
      for (var i=0; i<$options.length; i++) {
42
        if ($options[i].value == '---') {
42
        if (!$options[i].dataset.imageUrl) {
43 43
          continue;
44 44
        }
45 45
        var $item = $('<li style="--bg-image: url(' + $options[i].dataset.imageUrl + ')"/>');
46
-