Sha256: 50a123902f77048550604abf74ad621dff43e81e362f558e0b6ba9feb46cb4d4

Contents?: true

Size: 475 Bytes

Versions: 30

Compression:

Stored size: 475 Bytes

Contents

/* eslint-disable no-ternary */
((exports) => {
  const { createSortList } = exports.DecidimAdmin;

  // Once in DOM
  $(() => {
    const selector = ".js-sortable"
    const $sortable = $(selector)

    $sortable.each((index, elem) => {
      const item = (elem.id)
        ? `#${elem.id}`
        : selector

      createSortList(item, {
        handle: "li",
        forcePlaceholderSize: true,
        placeholderClass: "sort-placeholder"
      })
    })
  })
})(window)

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
decidim-admin-0.19.0 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.17.2 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.18.0 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.17.1 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.16.1 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.17.0 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.16.0 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.15.2 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.15.1 app/assets/javascripts/decidim/admin/sortable.js.es6
decidim-admin-0.15.0 app/assets/javascripts/decidim/admin/sortable.js.es6