2014-05-04 17:26:43 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
oml.ui.itemInnerPanel = 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">'
|
2014-10-31 18:37:32 +00:00
|
|
|
+ Ox.SYMBOLS.shift + 'B</span>'
|
2014-05-04 17:26:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
element: oml.$ui.itemViewPanel = oml.ui.itemViewPanel()
|
|
|
|
}
|
|
|
|
],
|
|
|
|
orientation: 'vertical'
|
|
|
|
})
|
|
|
|
.bindEvent({
|
|
|
|
oml_showbrowser: function(data) {
|
2014-09-25 11:39:05 +00:00
|
|
|
data.value == that.options('elements')[0].collapsed && that.toggleElement(0);
|
2014-05-04 17:26:43 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
return that;
|
|
|
|
|
|
|
|
};
|
|
|
|
|