forked from 0x2620/pandora
new documents section
This commit is contained in:
parent
3fcbd59525
commit
e1f35b1ec8
74 changed files with 6737 additions and 631 deletions
30
static/js/documentPanel.js
Normal file
30
static/js/documentPanel.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||
|
||||
'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();
|
||||
} else {
|
||||
pandora.$ui.document && pandora.$ui.document.update();
|
||||
}
|
||||
},
|
||||
});
|
||||
return that;
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue