list view: implement doubleclick to scroll to top
This commit is contained in:
parent
f3007c28fd
commit
d085a75a21
1 changed files with 10 additions and 1 deletions
|
@ -16,7 +16,16 @@ oml.ui.listToolbar = function() {
|
|||
oml.$ui.sortElement = oml.ui.sortElement()
|
||||
).append(
|
||||
oml.$ui.findElement = oml.ui.findElement()
|
||||
);
|
||||
)
|
||||
.bindEvent({
|
||||
doubleclick: function(event) {
|
||||
(
|
||||
ui.listView == 'list'
|
||||
? oml.$ui.list.$body
|
||||
: oml.$ui.list
|
||||
).animate({scrollTop: 0}, 250);
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
|
|
Loading…
Reference in a new issue