Open Media Library
This commit is contained in:
commit
2ee2bc178a
228 changed files with 85988 additions and 0 deletions
33
static/js/mainPanel.js
Normal file
33
static/js/mainPanel.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
'use strict';
|
||||
|
||||
oml.ui.mainPanel = function() {
|
||||
|
||||
var ui = oml.user.ui,
|
||||
|
||||
that = Ox.SplitPanel({
|
||||
elements: [
|
||||
{
|
||||
collapsible: true,
|
||||
collapsed: !ui.showSidebar,
|
||||
element: oml.$ui.leftPanel = oml.ui.leftPanel(),
|
||||
resizable: true,
|
||||
resize: [192, 256, 320, 384],
|
||||
size: ui.sidebarSize,
|
||||
tooltip: Ox._('sidebar') + ' <span class="OxBright">'
|
||||
+ Ox.SYMBOLS.SHIFT + 'S</span>'
|
||||
},
|
||||
{
|
||||
element: oml.$ui.rightPanel = oml.ui.rightPanel()
|
||||
}
|
||||
],
|
||||
orientation: 'horizontal'
|
||||
})
|
||||
.bindEvent({
|
||||
oml_showsidebar: function(data) {
|
||||
data.value == that.options('elements')[0].collapsed && that.toggle(0);
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue