diff --git a/modules/backend/formwidgets/repeater/assets/js/repeater.js b/modules/backend/formwidgets/repeater/assets/js/repeater.js index 348fc1830..240d02fad 100644 --- a/modules/backend/formwidgets/repeater/assets/js/repeater.js +++ b/modules/backend/formwidgets/repeater/assets/js/repeater.js @@ -38,15 +38,15 @@ var sortableOptions = { // useAnimation: true, - handle: '.repeater-item-handle', + handle: this.$el.data('sortable-handle'), nested: false } - $('ul.field-repeater-items', this.$el).sortable(sortableOptions) + $(this.$el.data('sortable-container'), this.$el).sortable(sortableOptions) } Repeater.prototype.unbind = function() { - this.$el.find('ul.field-repeater-items').sortable('destroy') + this.$el.find(this.$el.data('sortable-container')).sortable('destroy') this.$el.removeData('oc.repeater') } diff --git a/modules/backend/formwidgets/repeater/partials/_repeater.htm b/modules/backend/formwidgets/repeater/partials/_repeater.htm index cdb9fe2c9..930486544 100644 --- a/modules/backend/formwidgets/repeater/partials/_repeater.htm +++ b/modules/backend/formwidgets/repeater/partials/_repeater.htm @@ -1,4 +1,7 @@ -