|
|
@ -638,7 +638,7 @@ |
|
|
|
Sortable.active = null; |
|
|
|
Sortable.active = null; |
|
|
|
|
|
|
|
|
|
|
|
// Save sorting
|
|
|
|
// Save sorting
|
|
|
|
this.options.store && this.options.store.set(this); |
|
|
|
this.save() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -693,7 +693,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, this); |
|
|
|
}, this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
order.forEach(function (id) { |
|
|
|
order.forEach(function (id) { |
|
|
|
if (items[id]) { |
|
|
|
if (items[id]) { |
|
|
|
rootEl.removeChild(items[id]); |
|
|
|
rootEl.removeChild(items[id]); |
|
|
@ -703,6 +702,15 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Save the current sorting |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
save: function () { |
|
|
|
|
|
|
|
var store = this.options.store; |
|
|
|
|
|
|
|
store && store.set(this); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. |
|
|
|
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. |
|
|
|
* @param {HTMLElement} el |
|
|
|
* @param {HTMLElement} el |
|
|
|