openmedialibrary/static/js/rightPanel.js
2016-01-12 19:11:52 +05:30

28 lines
No EOL
730 B
JavaScript

'use strict';
oml.ui.rightPanel = function() {
var that = Ox.SplitPanel({
elements: [
{
element: oml.$ui.toolbar = oml.ui.toolbar(),
size: 24
},
{
element: oml.$ui.viewPanel = oml.ui.viewPanel()
}
],
orientation: 'vertical'
})
.bindEvent({
resize: function(data) {
oml.$ui.viewPanel.options({size: data.size});
oml.$ui.filtersOuterPanel.updateElement();
oml.$ui.list.size();
oml.$ui.itemViewPanel.options({size: data.size});
}
});
return that;
};