|
|
@ -227,7 +227,7 @@ Sortable.create(el, { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Get the order of elements. Called once during initialization. |
|
|
|
* Get the order of elements. Called once during initialization. |
|
|
|
* @param {Sortable} sortable |
|
|
|
* @param {Sortable} sortable |
|
|
|
* @retruns {Array} |
|
|
|
* @returns {Array} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
get: function (sortable) { |
|
|
|
get: function (sortable) { |
|
|
|
var order = localStorage.getItem(sortable.options.group); |
|
|
|
var order = localStorage.getItem(sortable.options.group); |
|
|
@ -235,7 +235,7 @@ Sortable.create(el, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Save the order of elements. Called every time at the drag end. |
|
|
|
* Save the order of elements. Called onEnd (when the item is dropped). |
|
|
|
* @param {Sortable} sortable |
|
|
|
* @param {Sortable} sortable |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
set: function (sortable) { |
|
|
|
set: function (sortable) { |
|
|
|