Open Media Library
This commit is contained in:
commit
2ee2bc178a
228 changed files with 85988 additions and 0 deletions
30
static/js/itemViewPanel.js
Normal file
30
static/js/itemViewPanel.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
'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,
|
||||
size: window.innerWidth - ui.sidebarSize - 1
|
||||
})
|
||||
.bindEvent({
|
||||
oml_itemview: function(data) {
|
||||
that.options({selected: data.value});
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue