2014-05-04 17:26:43 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
oml.ui.listToolbar = function() {
|
|
|
|
|
|
|
|
var ui = oml.user.ui,
|
|
|
|
|
|
|
|
that = Ox.Bar({size: 24})
|
|
|
|
.css({zIndex: 2})
|
|
|
|
.append(
|
|
|
|
oml.$ui.openButton = oml.ui.openButton()
|
|
|
|
).append(
|
|
|
|
oml.$ui.previewButton = oml.ui.previewButton()
|
|
|
|
).append(
|
|
|
|
oml.$ui.listViewButtons = oml.ui.listViewButtons()
|
|
|
|
).append(
|
|
|
|
oml.$ui.sortElement = oml.ui.sortElement()
|
|
|
|
).append(
|
|
|
|
oml.$ui.findElement = oml.ui.findElement()
|
2016-01-10 07:50:25 +00:00
|
|
|
)
|
|
|
|
.bindEvent({
|
|
|
|
doubleclick: function(event) {
|
|
|
|
(
|
|
|
|
ui.listView == 'list'
|
|
|
|
? oml.$ui.list.$body
|
|
|
|
: oml.$ui.list
|
|
|
|
).animate({scrollTop: 0}, 250);
|
|
|
|
}
|
|
|
|
});
|
2014-05-04 17:26:43 +00:00
|
|
|
|
|
|
|
return that;
|
|
|
|
|
|
|
|
};
|