mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Added logic to support non-sortable collections
This commit is contained in:
@@ -20,7 +20,7 @@ export default class CollectionsField {
|
|||||||
|
|
||||||
list.find('[data-collection-holder]').each((index, container) => {
|
list.find('[data-collection-holder]').each((index, container) => {
|
||||||
container = $(container);
|
container = $(container);
|
||||||
if (container.data('collection-sort')) { return; }
|
if (container.data('collection-sort') || container[0].hasAttribute('data-collection-nosort')) { return; }
|
||||||
|
|
||||||
container.data('collection-sort', new Sortable(container.get(0), {
|
container.data('collection-sort', new Sortable(container.get(0), {
|
||||||
forceFallback: false,
|
forceFallback: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user