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

Loading…
Cancel
Save