bugfix
This commit is contained in:
parent
5b0d056f05
commit
ca0f6320af
@ -86,7 +86,7 @@ bricks.DynamicAccordion = class extends bricks.VScrollPanel {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var w;
|
var w;
|
||||||
var tb;
|
var tb = null;
|
||||||
var info = new bricks.AccordionInfo({});
|
var info = new bricks.AccordionInfo({});
|
||||||
info.data = record;
|
info.data = record;
|
||||||
item.add_widget(info);
|
item.add_widget(info);
|
||||||
@ -101,8 +101,10 @@ bricks.DynamicAccordion = class extends bricks.VScrollPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
w = await bricks.widgetBuild(this.record_view, info, record);
|
w = await bricks.widgetBuild(this.record_view, info, record);
|
||||||
w.add_widget(tb, 0);
|
|
||||||
if (w){
|
if (w){
|
||||||
|
if (tb){
|
||||||
|
w.add_widget(tb, 0);
|
||||||
|
}
|
||||||
info.add_widget(w);
|
info.add_widget(w);
|
||||||
} else {
|
} else {
|
||||||
bricks.debug('bricks.widgetBuild(), tmpl=', this.record_view, 'record=', record);
|
bricks.debug('bricks.widgetBuild(), tmpl=', this.record_view, 'record=', record);
|
||||||
|
Loading…
Reference in New Issue
Block a user