mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 02:35:56 +02:00
* A lot of cleanup in ViewController
* ViewController.getFormData() * Lots of WIP work on fse.js & multiple forms
This commit is contained in:
parent
a241f91546
commit
13d104c840
6 changed files with 200 additions and 182 deletions
|
@ -40,5 +40,25 @@ StatusBarView.prototype.setPanels = function(panels) {
|
|||
|---------------------------------------------|
|
||||
| stuff |
|
||||
*/
|
||||
assert(_.isArray(panels));
|
||||
|
||||
this.panels = [];
|
||||
|
||||
var tvOpts = {
|
||||
cursor : 'hide',
|
||||
position : { row : this.position.row, col : 0 },
|
||||
};
|
||||
|
||||
panels.forEach(function panel(p) {
|
||||
assert(_.isObject(p));
|
||||
assert(_.has(p, 'width'));
|
||||
|
||||
if(p.text) {
|
||||
this.panels.push( new TextView( { }))
|
||||
} else {
|
||||
this.panels.push( { width : p.width } );
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue