2014-05-04 17:26:43 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
oml.ui.listInnerPanel = function() {
|
|
|
|
|
|
|
|
var ui = oml.user.ui,
|
|
|
|
|
|
|
|
that = Ox.SplitPanel({
|
|
|
|
elements: [
|
|
|
|
{
|
|
|
|
collapsed: !ui.showFilters,
|
|
|
|
collapsible: true,
|
|
|
|
element: oml.$ui.filtersOuterPanel = oml.ui.filtersOuterPanel(),
|
|
|
|
resizable: true,
|
|
|
|
resize: [96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256],
|
|
|
|
size: ui.filtersSize,
|
|
|
|
tooltip: Ox._('filters') + ' <span class="OxBright">'
|
|
|
|
+ Ox.SYMBOLS.SHIFT + 'F</span>'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
element: oml.$ui.list = oml.ui.list()
|
|
|
|
},
|
|
|
|
{
|
|
|
|
element: oml.$ui.statusbar = oml.ui.statusbar(),
|
|
|
|
size: 16
|
|
|
|
}
|
|
|
|
],
|
|
|
|
orientation: 'vertical'
|
|
|
|
})
|
|
|
|
.bindEvent({
|
|
|
|
oml_listview: function() {
|
2014-05-25 12:16:04 +00:00
|
|
|
Ox.print('LIST VIEW HAS CHANGED, REPLACING LIST')
|
2014-05-04 17:26:43 +00:00
|
|
|
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
|
|
|
},
|
|
|
|
oml_showfilters: function(data) {
|
|
|
|
data.value == that.options('elements')[0].collapsed && that.toggle(0);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
return that;
|
|
|
|
|
|
|
|
};
|