improved Plan / Allocation items

This commit is contained in:
Alexandre Gain committed 2026-11-07 22:08:06 +01:00
1 parent f6684f3b2e
commit 8c8d7a6f95
12 files changed
+49 -30

No files matched your search

+2 -2
View File
@@ -160,7 +160,7 @@ Mautic.planInitCollection = function ($editor) {
});
// Typed items (description, allocation): show the selected type's description under the dropdown, and
// for description items its pictogram next to it.
// its pictogram next to it.
$editor.on('change', 'select.plan-item-type', function () {
var $option = mQuery(this).find('option:selected');
var $row = mQuery(this).closest('.plan-collection-row');
@@ -201,7 +201,7 @@ Mautic.planInitCollection = function ($editor) {
$row.find('input[type="text"]').first().trigger('focus');
});
// Pictogram of a description item type: preview the chosen icon.
// Pictogram of an item type (description, allocation): preview the chosen icon.
mQuery(document).on('change', '.plan-config-types select.plan-type-icon-select', function () {
var icon = mQuery(this).find('option:selected').attr('data-icon') || '';
mQuery(this).closest('.plan-config-type').find('.plan-type-icon-preview').first().attr('class', 'plan-type-icon-preview ' + icon);