diff --git a/module/gallery.js b/module/gallery.js index aed5e4d..314f928 100644 --- a/module/gallery.js +++ b/module/gallery.js @@ -98,6 +98,12 @@ export class Gallery { */ 'preview': 'preview', + /** + * The sortable helper to use in galleries where gallery items + * can be sorted. + */ + 'sortableHelper': 'cloneGalleryItem', + /** * The URL that any file will be uploaded to. */ @@ -309,7 +315,7 @@ export class Gallery { 'grabSelector': '.mh-file-viewer__handle, .mh-image-viewer__handle', 'grabber': 'selector', - 'helper': 'cloneGalleryItem' + 'helper': this._options.sortableHelper } ) this._sortable.init() diff --git a/package.json b/package.json index bb3e2c2..7514b3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "manhattan-assets", - "version": "1.0.0-beta.12", + "version": "1.0.0-beta.13", "description": "File and image uploads for forms.", "engines": { "node": ">=8.9.4"