list view: implement doubleclick to scroll to top

This commit is contained in:
rlx 2016-01-10 13:20:25 +05:30
parent f3007c28fd
commit d085a75a21
1 changed files with 10 additions and 1 deletions

View File

@ -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;