Commit 6f5e124384fd7240c9af0e13182e6efc7c43b1dd
1 parent
991a338f
fix radio groups problem
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
web/jQuery/CXM_jq_radio.anubis
| @@ -57,7 +57,8 @@ define String | @@ -57,7 +57,8 @@ define String | ||
| 57 | if radio_group is | 57 | if radio_group is |
| 58 | { | 58 | { |
| 59 | group(name) then | 59 | group(name) then |
| 60 | - "$('.radio-group-" + name + "').addClass('unchecked');", | 60 | + with jq_selector = "$('.radio-group-" + name + ":not(#" + radio_id + ")')", |
| 61 | + jq_selector + ".addClass('unchecked').removeClass('checked');", | ||
| 61 | 62 | ||
| 62 | none then | 63 | none then |
| 63 | "" | 64 | "" |