openmedialibrary/static/js/itemViewPanel.js

31 lines
745 B
JavaScript
Raw Normal View History

2014-05-04 17:26:43 +00:00
'use strict';
oml.ui.itemViewPanel = function() {
var ui = oml.user.ui,
that = Ox.SlidePanel({
elements: [
{
id: 'info',
element: oml.$ui.infoView = oml.ui.infoView()
},
{
id: 'book',
element: oml.$ui.viewer = oml.ui.viewer()
}
],
orientation: 'horizontal',
selected: ui.itemView,
2019-02-12 08:08:41 +00:00
size: window.innerWidth - (ui.showSidebar ? ui.sidebarSize : 0) - 1
2014-05-04 17:26:43 +00:00
})
.bindEvent({
oml_itemview: function(data) {
that.options({selected: data.value});
}
});
return that;
2019-02-12 08:08:41 +00:00
};