imports/vx/client/code/ux.js
/**
     * Capture ID array of dragged list before damage.
     *
     * @param {object} $element jQuery element being dragged.
     */
Capture ID array of dragged list before damage.
@param {object} $element jQuery element being dragged.
Capture ID array of dragged list before damage . @param { object } $element jQuery element being dragged .
captureOriginalIds($element) {
        const originalIds = []
        const $list = $element.parents(".list-group")
        $list.children().each((index, child) => {
            const id = $(child).attr("data-item-id")
            if (id) {
                originalIds.push(id)
            }
        })
        return originalIds
    }
captureOriginalIds ( $element ) { const originalIds = [ ] const $list = $element . parents ( ".list-group" ) $list . children ( ) . each ( ( index , child ) => { const id = $ ( child ) . attr ( "data-item-id" ) if ( id ) { originalIds . push ( id ) } } ) return originalIds }
Capture ID array of dragged list before damage.
Capture ID array of dragged list before damage .