diff --git a/bricks/accordion.js b/bricks/accordion.js index c54e138..0b95307 100644 --- a/bricks/accordion.js +++ b/bricks/accordion.js @@ -48,6 +48,7 @@ bricks.Accordion = class extends bricks.VBox { var refresh = false; var b = event.target.bricks_widget; var name = b.opts.name; + this.select_item(b); bricks.debug('accordion: button=', b, 'name=', name); var pos = -1; for (var i=0; i< this.opts.items.length; i++){ diff --git a/bricks/bricks.js b/bricks/bricks.js index 4e45165..a74a717 100755 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -460,6 +460,7 @@ bricks.App = class extends bricks.Layout { */ super(opts); bricks.app = this; + bricks.bug = opts.debug or false; bricks.Body = this; this.deviceid = bricks.deviceid(opts.appname || 'appname'); this.login_url = opts.login_url;