Commit d1b5d85b21c31d6e100b1407656850090dff16d8
1 parent
fe4ac56c
replace aws_controller and aws_action by aws_c and aws_a (no functional change)
Showing
1 changed file
with
9 additions
and
10 deletions
Show diff stats
web/jquery.anubis
| ... | ... | @@ -84,9 +84,9 @@ public define String |
| 84 | 84 | { |
| 85 | 85 | no_action then "", //will use the default action defined in form |
| 86 | 86 | controller_action(ctrl, action) then |
| 87 | - "$('#"+form+"').get(0).setAttribute('action','/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"');\n" | |
| 87 | + "$('#"+form+"').get(0).setAttribute('action','/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"');\n" | |
| 88 | 88 | action_name(action) then |
| 89 | - "$('#"+form+"').get(0).setAttribute('action','/?aws_action="+action+"');", | |
| 89 | + "$('#"+form+"').get(0).setAttribute('action','/?aws_a="+action+"');", | |
| 90 | 90 | url(url) then |
| 91 | 91 | "$('#"+form+"').get(0).setAttribute('action','"+url+"');", |
| 92 | 92 | }+ |
| ... | ... | @@ -97,8 +97,8 @@ public define String |
| 97 | 97 | if control_action is |
| 98 | 98 | { |
| 99 | 99 | no_action then "", |
| 100 | - controller_action(ctrl, action) then "document.location='/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"';", | |
| 101 | - action_name(action) then "document.location='/?aws_action="+action+"';", | |
| 100 | + controller_action(ctrl, action) then "document.location='/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"';", | |
| 101 | + action_name(action) then "document.location='/?aws_a="+action+"';", | |
| 102 | 102 | url(url) then "document.location='"+url+"';", |
| 103 | 103 | } |
| 104 | 104 | jqflink(link) then "document.location='"+link+"';", |
| ... | ... | @@ -126,8 +126,8 @@ public define String |
| 126 | 126 | if control_action is |
| 127 | 127 | { |
| 128 | 128 | no_action then "", |
| 129 | - controller_action(ctrl, action) then "document.location='/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"';", | |
| 130 | - action_name(action) then "document.location='/?aws_action="+action+format_extra_operands(extra_ops)+"';", | |
| 129 | + controller_action(ctrl, action) then "document.location='/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"';", | |
| 130 | + action_name(action) then "document.location='/?aws_a="+action+format_extra_operands(extra_ops)+"';", | |
| 131 | 131 | url(url) then "document.location='"+url+"';", |
| 132 | 132 | } |
| 133 | 133 | jqflink(link) then "document.location='"+link+"';", |
| ... | ... | @@ -142,9 +142,9 @@ public define String |
| 142 | 142 | { |
| 143 | 143 | no_action then "", //will use the default action defined in form |
| 144 | 144 | controller_action(ctrl, action) then |
| 145 | - "$('#"+form+"').get(0).setAttribute('action','/?aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"');\n" | |
| 145 | + "$('#"+form+"').get(0).setAttribute('action','/?aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"');\n" | |
| 146 | 146 | action_name(action) then |
| 147 | - "$('#"+form+"').get(0).setAttribute('action','/?aws_action="+action+"');", | |
| 147 | + "$('#"+form+"').get(0).setAttribute('action','/?aws_a="+action+"');", | |
| 148 | 148 | url(url) then |
| 149 | 149 | "$('#"+form+"').get(0).setAttribute('action','"+url+"');", |
| 150 | 150 | }+ |
| ... | ... | @@ -156,8 +156,7 @@ public define String |
| 156 | 156 | { |
| 157 | 157 | no_action then "", |
| 158 | 158 | controller_action(ctrl, action) then |
| 159 | - "window.open('aws_controller="+ctrl+"&aws_action="+action+format_extra_operands(extra_ops)+"', '"+window_name+"', '"+jquery_button_get_onclick_action_window_options(window_options, "")+"');", | |
| 160 | - //"document.location='/?aws_controller="+ctrl+"&aws_action="+action+"';", | |
| 159 | + "window.open('aws_c="+ctrl+"&aws_a="+action+format_extra_operands(extra_ops)+"', '"+window_name+"', '"+jquery_button_get_onclick_action_window_options(window_options, "")+"');", | |
| 161 | 160 | action_name(action) then |
| 162 | 161 | "window.open('"+action+format_extra_operands(extra_ops)+"', '"+window_name+"', '"+jquery_button_get_onclick_action_window_options(window_options, "")+"');", |
| 163 | 162 | url(url) then "document.location='"+url+"';", | ... | ... |