1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-18 20:41:16 +02:00

Update InputfieldRepeater.js so that it triggers change and sorted events when items are sorted

This commit is contained in:
Ryan Cramer
2021-11-05 13:25:02 -04:00
parent e5898cc4f6
commit 9e118ac519
2 changed files with 3 additions and 1 deletions

View File

@@ -315,6 +315,7 @@ function InputfieldRepeater($) {
.addClass('InputfieldRepeaterWasUnpublished');
$input.val('1');
}
$input.trigger('change');
checkMinMax($item.closest('.InputfieldRepeater'));
}, 250);
@@ -1136,6 +1137,7 @@ function InputfieldRepeater($) {
tinyMCE.execCommand('mceAddControl', false, $(this).attr('id'));
});
$(this).closest('.InputfieldRepeater').trigger('sorted', [ ui.item ]);
}
};

File diff suppressed because one or more lines are too long