From d1b5d85b21c31d6e100b1407656850090dff16d8 Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 16 Oct 2022 19:23:05 +0200 Subject: [PATCH] replace aws_controller and aws_action by aws_c and aws_a (no functional change) --- web/jquery.anubis | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/web/jquery.anubis b/web/jquery.anubis index 9faa6e3..62293cc 100644 --- a/web/jquery.anubis +++ b/web/jquery.anubis @@ -84,9 +84,9 @@ public define String { no_action then "", //will use the default action defined in form controller_action(ctrl, action) then - "$('#"+form+"').get(0).setAttribute('action','/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"');\n" + "$('#"+form+"').get(0).setAttribute('action','/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"');\n" action_name(action) then - "$('#"+form+"').get(0).setAttribute('action','/?aws_action="+action+"');", + "$('#"+form+"').get(0).setAttribute('action','/?aws_a="+action+"');", url(url) then "$('#"+form+"').get(0).setAttribute('action','"+url+"');", }+ @@ -97,8 +97,8 @@ public define String if control_action is { no_action then "", - controller_action(ctrl, action) then "document.location='/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"';", - action_name(action) then "document.location='/?aws_action="+action+"';", + controller_action(ctrl, action) then "document.location='/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"';", + action_name(action) then "document.location='/?aws_a="+action+"';", url(url) then "document.location='"+url+"';", } jqflink(link) then "document.location='"+link+"';", @@ -126,8 +126,8 @@ public define String if control_action is { no_action then "", - controller_action(ctrl, action) then "document.location='/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"';", - action_name(action) then "document.location='/?aws_action="+action+format_extra_operands(extra_ops)+"';", + controller_action(ctrl, action) then "document.location='/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"';", + action_name(action) then "document.location='/?aws_a="+action+format_extra_operands(extra_ops)+"';", url(url) then "document.location='"+url+"';", } jqflink(link) then "document.location='"+link+"';", @@ -142,9 +142,9 @@ public define String { no_action then "", //will use the default action defined in form controller_action(ctrl, action) then - "$('#"+form+"').get(0).setAttribute('action','/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"');\n" + "$('#"+form+"').get(0).setAttribute('action','/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"');\n" action_name(action) then - "$('#"+form+"').get(0).setAttribute('action','/?aws_action="+action+"');", + "$('#"+form+"').get(0).setAttribute('action','/?aws_a="+action+"');", url(url) then "$('#"+form+"').get(0).setAttribute('action','"+url+"');", }+ @@ -156,8 +156,7 @@ public define String { no_action then "", controller_action(ctrl, action) then - "window.open('aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"', '"+window_name+"', '"+jquery_button_get_onclick_action_window_options(window_options, "")+"');", - //"document.location='/?aws_controller="+ctrl+"&aws_action="+action+"';", + "window.open('aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"', '"+window_name+"', '"+jquery_button_get_onclick_action_window_options(window_options, "")+"');", action_name(action) then "window.open('"+action+format_extra_operands(extra_ops)+"', '"+window_name+"', '"+jquery_button_get_onclick_action_window_options(window_options, "")+"');", url(url) then "document.location='"+url+"';", -- libgit2 0.21.4