diff --git a/bricks/form.js b/bricks/form.js index a9255f8..834a0f1 100644 --- a/bricks/form.js +++ b/bricks/form.js @@ -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);