From 293b4efaa16b8402ce17d1f69282245b4ebeef5f Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 27 Nov 2021 07:55:25 +0100 Subject: [PATCH] [+] create load_page with WEB_Action_Name. like the load_content, load_page is an url where is located the page to load --- web/load_content.anubis | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+), 0 deletions(-) diff --git a/web/load_content.anubis b/web/load_content.anubis index e5dc54e..381982d 100644 --- a/web/load_content.anubis +++ b/web/load_content.anubis @@ -13,6 +13,33 @@ read xlib/web/web_action.anubis read xlib/web/js_tools.anubis public define String + load_page + ( + WEB_Action_Name web_action, + List((String,String)) extra_args + )= + "location.href='"+format_web_action_name(web_action, extra_args)+"'" +. + +public define String + load_page + ( + WEB_Action_Name web_action, + (String, String) extra_arg + )= + load_page(web_action, [extra_arg]) +. + +public define String + load_page + ( + WEB_Action_Name web_action + )= + load_page(web_action, []) +. + + +public define String load_content ( String target, -- libgit2 0.21.4