Fix template icon not overriden by a thumbnail in the PCS

pull/1/head
yflory 6 years ago
parent ce08d7b650
commit 61659c1252

@ -2069,7 +2069,9 @@ define([
}).appendTo($container); }).appendTo($container);
$span.data('id', obj.id); $span.data('id', obj.id);
if (idx === selected) { $span.addClass('cp-creation-template-selected'); } if (idx === selected) { $span.addClass('cp-creation-template-selected'); }
$span.append(obj.icon || h('span.cptools.cptools-template')); if (!obj.thumbnail) {
$span.append(obj.icon || h('span.cptools.cptools-template'));
}
$('<span>', {'class': 'cp-creation-template-element-name'}).text(name) $('<span>', {'class': 'cp-creation-template-element-name'}).text(name)
.appendTo($span); .appendTo($span);
$span.click(function () { $span.click(function () {

Loading…
Cancel
Save