bugfix
This commit is contained in:
parent
cb58e8998e
commit
7df6ee32e2
@ -122,10 +122,15 @@ bricks.Form = class extends bricks.VBox {
|
||||
constructor(opts){
|
||||
super(opts);
|
||||
this.body = new bricks.FormBody(opts);
|
||||
this.body.bind('submited', this.redispatch_submited.bind(this));
|
||||
this.add_widget(this.body);
|
||||
if (! opts.notoolbar)
|
||||
this.build_toolbar(this);
|
||||
}
|
||||
redispatch_submited(args, event){
|
||||
console.log('redispatch_submited():args=',args, 'event=', event);
|
||||
self.dispatch('submited', args);
|
||||
}
|
||||
build_toolbar(widget){
|
||||
var box = new bricks.HBox({height:'auto', width:'100%'});
|
||||
widget.add_widget(box);
|
||||
|
Loading…
Reference in New Issue
Block a user