From 6a265e88663121272db774cea4a83a83db474c17 Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 10 Apr 2022 18:24:00 +0200 Subject: [PATCH] [+] load_in_tab load in browser tab a WEB_Action_Name with his arguments --- web/load_content.anubis | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/web/load_content.anubis b/web/load_content.anubis index 9f1c59c..2d12bb1 100644 --- a/web/load_content.anubis +++ b/web/load_content.anubis @@ -13,6 +13,15 @@ read xlib/web/web_action.anubis read xlib/web/js_tools.anubis public define String + load_in_tab + ( + WEB_Action_Name web_action, + List((String,String)) extra_args + )= + "window.open('"+format_web_action_name(web_action, extra_args)+"', '_blank');" +. + +public define String load_page ( WEB_Action_Name web_action, -- libgit2 0.21.4