From dd4647b9bd3a558f30314fe889fa84d6dd7c4807 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 29 Jul 2025 17:01:46 +0800 Subject: [PATCH] bugfix --- bricks/bricks.js | 8 ++++---- bricks/build.sh | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bricks/bricks.js b/bricks/bricks.js index 96d04bc..07f635d 100644 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -329,12 +329,12 @@ var _buildWidget = async function(from_widget, target, mode, options, desc){ if (! target.parent){ bricks.app.add_widget(target); } - console.log('target=', target); - if (desc.popup_options.eventpos){ - target.bind('opened', bricks.relocate_by_eventpos.bind(null, desc.event, 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'){ target.clear_widgets(); target.add_widget(w); diff --git a/bricks/build.sh b/bricks/build.sh index 593e317..ba32dba 100755 --- a/bricks/build.sh +++ b/bricks/build.sh @@ -41,4 +41,5 @@ cp -a ../3parties/* ../dist/3parties cp -a ../docs/* ../dist/docs cp *.tmpl ../dist cp -a ../dist /tmp +cp -a ../dist/* /d/public/bricks echo "Finished ..."