Sha256: 8ab2ffd784eb3d617735273cf5a4042d28ad17b83f50d7cadced1738e6cd35c3

Contents?: true

Size: 663 Bytes

Versions: 103

Compression:

Stored size: 663 Bytes

Contents

const atomeSort = {
    sort: function (options, atome_id, atome) {
        let element = document.getElementById(atome_id)
        let children = Array.from(element.children);
        children.forEach((element, _index) => {
            element.style.position = 'relative'
            element.style.webkitUserDrag = 'element'
        })
        Sortable.create(element, {
            animation: 1150,
            ghostClass: 'selected',
            onSort: function () {
                // alert('sorted');
                atome.$sort_callback(atome)

                // sortable({sort: onSort, change:onChange, start:onStart })
            }
        })
    },
}

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
atome-0.5.7.6.5 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.6.0 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.5.9 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.5.4 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.5.3 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.5.1 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.4.8 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.4.7 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.4.6 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.4.3 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.4.2 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.3.9 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.3.6 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.3.5 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.3.3 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.3.2 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.3.1 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.3.0 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.1.8 vendor/assets/src/js/atome/atome_helpers/atome_sort.js
atome-0.5.7.1.7 vendor/assets/src/js/atome/atome_helpers/atome_sort.js