more functionality for ListCalendar

This commit is contained in:
rlx 2011-10-10 12:38:54 +00:00
commit d2972cd526
5 changed files with 61 additions and 53 deletions

View file

@ -1345,7 +1345,7 @@ Ox.List = function(options, self) {
if (!self.isAsync) {
selectedIds = getSelectedIds();
self.options.items.forEach(function(item) {
sort[item.id] = map ? map(item[key]) : item[key];
sort[item.id] = map ? map(item[key], item) : item[key];
});
self.options.items.sort(function(a, b) {
var aValue = sort[a.id],