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:
@@ -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
Reference in New Issue
Block a user