one toolbar for all, repanelize
This commit is contained in:
parent
e3f0064157
commit
3213d8c102
10 changed files with 123 additions and 136 deletions
35
static/js/itemPanel.js
Normal file
35
static/js/itemPanel.js
Normal 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;
|
||||
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue