Commit ac53fdfddd1c608ac22ddef51133ef3ca66d1e9b
1 parent
48c3322a
add "show_id" data attribute to all selected "hide_show" widgets like the select…
…or_hide_show (checkbox and radio_button)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
web/CXM_form.anubis
| ... | ... | @@ -481,7 +481,7 @@ public define HTML_In_Form |
| 481 | 481 | checkbox_hide_show(options, label, wan, val, checked, fields) then |
| 482 | 482 | with div_id = generate_random_string(15), |
| 483 | 483 | sequence([ |
| 484 | - check_box([class("in"), event(onclick, "checked_hide_show_element('"+div_id+"', this);")], label, htmlId(""), wan, val, get_Bool(lwa, wan.name, checked)), | |
| 484 | + check_box([data("show_id", div_id), class("in"), class("cxm_checkbox_hide_show"), event(onclick, "checked_hide_show_element('"+div_id+"', this);")], label, htmlId(""), wan, val, get_Bool(lwa, wan.name, checked)), | |
| 485 | 485 | div([id(div_id), style("display:"+if checked then "block" else "none")], sequence(map((CXM_Form_Field ff2) |-> div([class("form_field")], format_CXM_Form_Field(ff2, lwa)),fields))) |
| 486 | 486 | ]), |
| 487 | 487 | |
| ... | ... | @@ -491,7 +491,7 @@ public define HTML_In_Form |
| 491 | 491 | radio_button_hide_show(options, label, wan, val, checked, fields) then |
| 492 | 492 | with div_id = generate_random_string(15), |
| 493 | 493 | sequence([ |
| 494 | - radio_button([data("show_id", div_id), class("in"), event(onclick, "radio_hide_show_group('"+wan.name+"', this);")], label, htmlId(""), wan, val, get_Bool(lwa, wan.name, checked)), | |
| 494 | + radio_button([data("show_id", div_id), class("in"), class("cxm_radio_hide_show"), event(onclick, "radio_hide_show_group('"+wan.name+"', this);")], label, htmlId(""), wan, val, get_Bool(lwa, wan.name, checked)), | |
| 495 | 495 | div([id(div_id), style("display:"+if checked then "block" else "none")], sequence(map((CXM_Form_Field ff2) |-> div([class("form_field")], format_CXM_Form_Field(ff2, lwa)),fields))) |
| 496 | 496 | ]), |
| 497 | 497 | ... | ... |