some fixes

This commit is contained in:
rlx 2011-01-05 17:17:11 +00:00
parent 149e31c484
commit eabe90526f

View File

@ -6198,9 +6198,8 @@ requires
function addToSelection(pos) { function addToSelection(pos) {
if (!isSelected(pos)) { if (!isSelected(pos)) {
self.selected.push(pos); self.selected.push(pos);
if (!Ox.isUndefined(self.$items[pos])) { !Ox.isUndefined(self.$items[pos]) &&
self.$items[pos].addClass('OxSelected'); self.$items[pos].addClass('OxSelected');
}
Ox.print('addToSelection') Ox.print('addToSelection')
triggerSelectEvent(); triggerSelectEvent();
} else { } else {
@ -6231,11 +6230,9 @@ requires
self.pageLength : self.listLength % self.pageLength); i++ self.pageLength : self.listLength % self.pageLength); i++
) { ) {
// fixme: why does chainging fail here? // fixme: why does chainging fail here?
var $item = new Ox.ListItem({ new Ox.ListItem({
construct: self.options.construct construct: self.options.construct
}); }).appendTo($page);
$item.addClass('OxEmpty').removeClass('OxTarget');
$item.appendTo($page);
} }
Ox.print('cEP done') Ox.print('cEP done')
return $page; return $page;