This commit is contained in:
yumoqing 2024-10-24 11:33:47 +08:00
parent 517cd150d8
commit 691648791b
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ bricks.Accordion = class extends bricks.VBox {
var refresh = false; var refresh = false;
var b = event.target.bricks_widget; var b = event.target.bricks_widget;
var name = b.opts.name; var name = b.opts.name;
this.select_item(b);
bricks.debug('accordion: button=', b, 'name=', name); bricks.debug('accordion: button=', b, 'name=', name);
var pos = -1; var pos = -1;
for (var i=0; i< this.opts.items.length; i++){ for (var i=0; i< this.opts.items.length; i++){

View File

@ -460,6 +460,7 @@ bricks.App = class extends bricks.Layout {
*/ */
super(opts); super(opts);
bricks.app = this; bricks.app = this;
bricks.bug = opts.debug or false;
bricks.Body = this; bricks.Body = this;
this.deviceid = bricks.deviceid(opts.appname || 'appname'); this.deviceid = bricks.deviceid(opts.appname || 'appname');
this.login_url = opts.login_url; this.login_url = opts.login_url;