From 73f7b692ca09359712402d3682ba96933bcc336c Mon Sep 17 00:00:00 2001 From: totoro Date: Tue, 27 Mar 2018 13:14:28 +0200 Subject: [PATCH] add formatter for WEB_Action_Name as javascript argument. This is means the surrounded with simple quote. --- web/CXM_web_action.anubis | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) diff --git a/web/CXM_web_action.anubis b/web/CXM_web_action.anubis index 601930d..44d34dc 100644 --- a/web/CXM_web_action.anubis +++ b/web/CXM_web_action.anubis @@ -74,3 +74,20 @@ public define String + format_extra_operands(extra_ops) . + +public define String + format_web_action_name_to_js + ( + WEB_Action_Name action, + List((String,String)) extra_ops, + )= + "'"+format_web_action_name(action, extra_ops)+"'" +. + +public define String + format_web_action_name_to_js + ( + WEB_Action_Name action + )= + format_web_action_name_to_js(action, []) +. -- libgit2 0.21.4