From c92db005afd21654a0a749326c971e871c5d3d9b Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 29 Dec 2019 23:31:30 +0100 Subject: [PATCH] add img_button with with extra_operands arguments --- web/jQuery/CXM_jquery_button.anubis | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/web/jQuery/CXM_jquery_button.anubis b/web/jQuery/CXM_jquery_button.anubis index d5c751e..fbc5117 100644 --- a/web/jQuery/CXM_jquery_button.anubis +++ b/web/jQuery/CXM_jquery_button.anubis @@ -378,13 +378,26 @@ public define HTML_Partial_Content String label, //translated label of the button String form_id // )= - jquery_button(jquery_img_button(icn16_check, label, "", jQuery_actioner(same, jqform(form_id, no_action, [])), left)). + jquery_button(jquery_img_button(icn16_check, label, "", jQuery_actioner(same, jqform(form_id, no_action, [])), left)) +. public define HTML_Partial_Content img_button ( - String icon, - String label, //translated label of the button - WEB_Action_Name action + String icon, //URL of + String label, //translated label of the button + WEB_Action_Name action, + List((String,String)) extra_ops + )= + jquery_button(jquery_img_button(icon, label, "", jQuery_actioner(same, jqlink(action, extra_ops)), left)) +. + +public define HTML_Partial_Content + img_button + ( + String icon, + String label, //translated label of the button + WEB_Action_Name action )= - jquery_button(jquery_img_button(icon, label, "", jQuery_actioner(same, jqlink(action)), left)). + jquery_button(jquery_img_button(icon, label, "", jQuery_actioner(same, jqlink(action)), left)) +. -- libgit2 0.21.4