Sha256: 819995839abd07ceed9f01c3125b852b45e30a8ee82c43128980b5dfc83db7fe

Contents?: true

Size: 435 Bytes

Versions: 31

Compression:

Stored size: 435 Bytes

Contents

/* eslint-disable no-ternary */

import createSortList from "src/decidim/admin/sort_list.component"

// 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"
    })
  })
})

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-admin-0.27.9 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.8 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.7 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.6 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.10 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.9 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.5 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.8 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.4 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.3 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.7 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.5 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.2 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.1 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.4 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.0 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.3 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.0.rc2 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.27.0.rc1 app/packs/src/decidim/admin/sortable.js
decidim-admin-0.26.2 app/packs/src/decidim/admin/sortable.js