mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +01:00
Added input fields to the exclusion list of draggable elements in Collections (fixes #142)
This commit is contained in:
@@ -436,10 +436,13 @@ $(function () {
|
||||
template = el.find('[data-collection-template="new"]').html();
|
||||
|
||||
// make sortable
|
||||
new Sortable(holder[0], { onUpdate: function () {
|
||||
if (isArray)
|
||||
reIndex(el);
|
||||
} });
|
||||
new Sortable(holder[0], {
|
||||
filter: '.form-input-wrapper',
|
||||
onUpdate: function () {
|
||||
if (isArray)
|
||||
reIndex(el);
|
||||
}
|
||||
});
|
||||
|
||||
// hook up delete
|
||||
el.on('click', '[data-action="delete"]', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user