one toolbar for all, repanelize

This commit is contained in:
rlx 2016-01-12 18:45:15 +05:30
commit 3213d8c102
10 changed files with 123 additions and 136 deletions

35
static/js/itemPanel.js Normal file
View file

@ -0,0 +1,35 @@
'use strict';
oml.ui.itemPanel = function() {
var ui = oml.user.ui,
that = Ox.SplitPanel({
elements: [
{
collapsed: !ui.showBrowser,
collapsible: true,
element: oml.$ui.browser = oml.ui.browser(),
size: 112 + Ox.UI.SCROLLBAR_SIZE,
tooltip: Ox._('browser')
+ ' <span class="OxBright">'
+ Ox.SYMBOLS.shift + 'B</span>'
},
{
element: oml.$ui.itemViewPanel = oml.ui.itemViewPanel()
}
],
orientation: 'vertical'
})
.bindEvent({
oml_showbrowser: function(data) {
if (data.value == that.options('elements')[0].collapsed) {
that.toggleElement(0);
}
}
});
return that;
};