pandora/static/js/documentPanel.js

30 lines
869 B
JavaScript
Raw Permalink Normal View History

2016-10-04 22:00:03 +00:00
'use strict';
pandora.ui.documentPanel = function() {
var that = Ox.SplitPanel({
elements: [
{
element: pandora.$ui.toolbar = pandora.ui.documentToolbar(),
size: 24
},
{
element: pandora.$ui.documentContentPanel = pandora.ui.documentContentPanel()
}
],
id: 'documentPanel',
orientation: 'vertical'
})
.bindEvent({
resize: function(data) {
if (!pandora.user.ui.document) {
pandora.$ui.list && pandora.$ui.list.size();
pandora.resizeFilters();
2016-10-04 22:00:03 +00:00
} else {
pandora.$ui.document && pandora.$ui.document.update();
}
},
});
return that;
};