0001-arles-2020-ignore-items-with-no-image-url-defined-60.patch
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 |
- |