bugfix
This commit is contained in:
parent
324bf352cb
commit
3c0fd2fe0e
@ -335,23 +335,10 @@ var _buildWidget = async function(from_widget, target, mode, options, desc){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (w instanceof bricks.Popup) {
|
if (w instanceof bricks.Popup) {
|
||||||
return
|
|
||||||
}
|
|
||||||
if (w.parent) {
|
|
||||||
if (target instanceof bricks.Popup || target instanceof bricks.PopupWindow){
|
|
||||||
target.destroy();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (target instanceof bricks.Popup || target instanceof bricks.PopupWindow) {
|
if (w instanceof bricks.NewWindow) {
|
||||||
if (! target.parent){
|
return;
|
||||||
bricks.app.add_widget(target);
|
|
||||||
}
|
|
||||||
if (desc.popup_options){
|
|
||||||
if (desc.popup_options.eventpos){
|
|
||||||
target.bind('opened', bricks.relocate_by_eventpos.bind(null, desc.event, target));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (mode == 'replace'){
|
if (mode == 'replace'){
|
||||||
target.clear_widgets();
|
target.clear_widgets();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user