mirror of
https://github.com/processwire/processwire.git
synced 2025-08-19 13:01:26 +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');
|
.addClass('InputfieldRepeaterWasUnpublished');
|
||||||
$input.val('1');
|
$input.val('1');
|
||||||
}
|
}
|
||||||
|
$input.trigger('change');
|
||||||
checkMinMax($item.closest('.InputfieldRepeater'));
|
checkMinMax($item.closest('.InputfieldRepeater'));
|
||||||
}, 250);
|
}, 250);
|
||||||
|
|
||||||
@@ -1136,6 +1137,7 @@ function InputfieldRepeater($) {
|
|||||||
tinyMCE.execCommand('mceAddControl', false, $(this).attr('id'));
|
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