1
0
Fork 0
forked from 0x2620/oxjs

reform Ox.List to allow for scroll position staying the same after deleting an item

This commit is contained in:
rolux 2011-05-29 18:05:29 +02:00
commit 7b2a0cfef5
3 changed files with 57 additions and 43 deletions

View file

@ -569,7 +569,7 @@ Ox.ListMap = function(options, self) {
self.$placeButton.options({title: 'Add Place'});
that.triggerEvent('removeplace', {id: self.selectedPlace});
if (self.isAsync) {
self.$list.options({selected: []}).reloadList();
self.$list.options({selected: []}).reloadList(true);
}
}