From 10e6407419b615f5312225136d7fd0fc04d457ad Mon Sep 17 00:00:00 2001 From: p
Date: Wed, 12 Aug 2026 15:48:34 +0800 Subject: [PATCH] workspace: event_params [id] for urlwidget --- wwwroot/api/workspace_popup.dspy | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wwwroot/api/workspace_popup.dspy b/wwwroot/api/workspace_popup.dspy index ff172ac..399d6bd 100644 --- a/wwwroot/api/workspace_popup.dspy +++ b/wwwroot/api/workspace_popup.dspy @@ -59,9 +59,13 @@ async with DBPools().sqlorContext(dbname) as sor: "binds": [{ "wid": "self", "event": "selected", - "actiontype": "script", - "target": "self", - "script": f"var nid=this.selected_node.user_data.id;var fp=bricks.getWidgetById('ws_files',bricks.app);if(fp)fp.setUrl('{files_url}?id='+encodeURIComponent(nid));" + "actiontype": "urlwidget", + "target": "ws_files", + "options": { + "url": files_url + "?id=", + "params": {}, + "event_params": ["id"] + } }] }] },