Added input fields to the exclusion list of draggable elements in Collections (fixes #142)

This commit is contained in:
Djamil Legato
2015-09-07 13:07:33 -07:00
parent ae29c38f19
commit 68774774c2

View File

@@ -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) {