Commit 66bbe8ed authored by Marc Duez's avatar Marc Duez

list.js : sortList ignore data ( always keep data at the clone list end)

parent b2683b35
......@@ -534,12 +534,14 @@ List.prototype = {
sortListBySize: function () {
self = this;
var list = jQuery('.list')
var list = jQuery('#list_clones').children()
var sort = list.sort(function (a, b) {
var idA = $(a)
.attr("id");
var idB = $(b)
.attr("id");
if (idA == "list_data") return 1;
if (idB == "list_data") return -1;
return self.m.clone(idB).getSize() > self.m.clone(idA).getSize() ? 1 : -1;
})
$("#list_clones")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment