openmedialibrary/static/js/rightPanel.js

28 lines
730 B
JavaScript
Raw Normal View History

2014-05-04 17:26:43 +00:00
'use strict';
oml.ui.rightPanel = function() {
2016-01-12 13:15:15 +00:00
var that = Ox.SplitPanel({
2014-05-04 17:26:43 +00:00
elements: [
{
2016-01-12 13:15:15 +00:00
element: oml.$ui.toolbar = oml.ui.toolbar(),
size: 24
2014-05-04 17:26:43 +00:00
},
{
2016-01-12 13:15:15 +00:00
element: oml.$ui.viewPanel = oml.ui.viewPanel()
2014-05-04 17:26:43 +00:00
}
],
2016-01-12 13:15:15 +00:00
orientation: 'vertical'
2014-05-04 17:26:43 +00:00
})
.bindEvent({
resize: function(data) {
2016-01-12 13:15:15 +00:00
oml.$ui.viewPanel.options({size: data.size});
2014-05-17 11:45:57 +00:00
oml.$ui.filtersOuterPanel.updateElement();
2016-01-10 09:39:21 +00:00
oml.$ui.list.size();
2016-01-12 13:41:52 +00:00
oml.$ui.itemViewPanel.options({size: data.size});
2014-05-04 17:26:43 +00:00
}
});
return that;
2014-05-19 15:00:33 +00:00
};