2014-05-04 17:26:43 +00:00
|
|
|
'use strict';
|
|
|
|
|
2016-01-12 13:15:15 +00:00
|
|
|
oml.ui.listPanel = function() {
|
2014-05-04 17:26:43 +00:00
|
|
|
|
|
|
|
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">'
|
2014-10-31 18:37:32 +00:00
|
|
|
+ Ox.SYMBOLS.shift + 'F</span>'
|
2014-05-04 17:26:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
element: oml.$ui.list = oml.ui.list()
|
|
|
|
},
|
|
|
|
{
|
|
|
|
element: oml.$ui.statusbar = oml.ui.statusbar(),
|
|
|
|
size: 16
|
|
|
|
}
|
|
|
|
],
|
|
|
|
orientation: 'vertical'
|
|
|
|
})
|
|
|
|
.bindEvent({
|
2017-07-13 08:49:34 +00:00
|
|
|
oml_find: function() {
|
|
|
|
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
|
|
|
},
|
2014-05-04 17:26:43 +00:00
|
|
|
oml_listview: function() {
|
|
|
|
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
|
|
|
},
|
|
|
|
oml_showfilters: function(data) {
|
2016-01-12 13:15:15 +00:00
|
|
|
if (data.value == that.options('elements')[0].collapsed) {
|
|
|
|
that.toggleElement(0);
|
|
|
|
}
|
2014-05-04 17:26:43 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
return that;
|
|
|
|
|
2014-09-25 11:39:05 +00:00
|
|
|
};
|