From 87fea19b528c2b678a9c7237f847078ce830c0c6 Mon Sep 17 00:00:00 2001 From: totoro Date: Mon, 29 Aug 2022 18:41:08 +0900 Subject: [PATCH] update html_tooltip with the new format of data inside the attributes --- web/making_a_web_site.anubis | 18 ++++++++++-------- web/widgets/css_helper.anubis | 11 ++++++----- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/web/making_a_web_site.anubis b/web/making_a_web_site.anubis index e4803b7..a6ea193 100644 --- a/web/making_a_web_site.anubis +++ b/web/making_a_web_site.anubis @@ -4716,12 +4716,14 @@ public define List(CoreAttrs) //[" 0 then ["&width=",width,"\""] else ["\""]), ">"], html_tooltip_ext(title, extend_type, class_suffix, ext_args) then //TODO - [] - //with extra_args = format_extra_operands(ext_args), - //[""] + //[] + with extra_args = format_extra_operands(ext_args), + [id("jTip"), class("jTipu jTip_"+class_suffix), data("name",title), data("href", "/?a=ajax_show_tooltip&tooltip_ext="+extend_type+extra_args)] html_tooltip_ext(title, extend_type, ext_args) then //TODO - [] + with extra_args = format_extra_operands(ext_args), + [id("jTip"), class("jTipu"), data("name",title), data("href", "/?a=ajax_show_tooltip&tooltip_ext="+extend_type+extra_args)] +// [] //with extra_args = format_extra_operands(ext_args), //[""], @@ -4745,17 +4747,17 @@ public define Printable_tree if tooltip is { html_tooltip(title, keyword, width) then - [" 0 then ["&width=",width,"\""] else ["\""]), ">"], + [" 0 then ["&width=",width,"\""] else ["\""]), ">"], html_tooltip_ext(title, extend_type, class_suffix, ext_args) then with extra_args = format_extra_operands(ext_args), - [""] + [""] html_tooltip_ext(title, extend_type, ext_args) then with extra_args = format_extra_operands(ext_args), - [""], + [""], html_tooltip(title, web_action, extra_args) then - [""], + [""], } . diff --git a/web/widgets/css_helper.anubis b/web/widgets/css_helper.anubis index af19f62..4a4e8d5 100644 --- a/web/widgets/css_helper.anubis +++ b/web/widgets/css_helper.anubis @@ -237,14 +237,14 @@ public define HTML_Partial_Content actioner(same,same, link([id("help_" + keyword), class("jTip jTip_help"), attr("target", "_blank")], " ", success(title)), "ajax_show_tooltip", [("tooltip_id", keyword)], []). -public define HTML_Off_Form + public define HTML_Off_Form html_tooltip ( String title, String keyword, Int width ) = - a([id("help_"+keyword), class("jTipu jTip_help"), attr("name",title)], href(action_name("ajax_show_tooltip"), [("tooltip_id",keyword),("width",to_String(width))])). + a([id("help_"+keyword), class("jTipu jTip_help"), data("name",title)], data("href",format_web_action_name(action_name("ajax_show_tooltip"), [("tooltip_id",keyword),("width",to_String(width))]))). // literal(""). @@ -269,7 +269,7 @@ public define HTML_In_Form String keyword, Int width, ) = - literal(""). + literal(""). actioner(same,same, link([id("help_" + keyword), class("jTip jTip_help"), attr("target", "_blank")], " ", success(title)), "ajax_show_tooltip", [("tooltip_id", keyword), ("width", to_decimal(width))], []). @@ -291,7 +291,7 @@ public define HTML_Off_Form List((String, String)) ext_args ) = with extra_args = format_extra_operands(ext_args), - literal(""). + literal(""). actioner(same,same, link([id("help_" + keyword), class("jTip jTip_"+class_suffix), attr("target", "_blank")], " ", success(title)), "ajax_show_tooltip", [("tooltip_ext", keyword)] + ext_args, []). @@ -313,7 +313,8 @@ public define HTML_In_Form List((String, String)) ext_args ) = with extra_args = format_extra_operands(ext_args), - literal(""). + + literal(""). href=\"/?a=ajax_show_tooltip&tooltip_id="+keyword+"\" id=\"help_"+keyword+HELP_HMS_MODE" class="jTip jTip_help" target="_blank" name="Aide sur la fonctionnalité 'No Limit'"> "). -- libgit2 0.21.4