From 6fe1d5816fc24e2228360f4a369e54ecfedaffe8 Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 20 Mar 2016 04:28:05 +0100 Subject: [PATCH] add class in on radio_button, selector and checkbox --- web/CXM_form.anubis | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/CXM_form.anubis b/web/CXM_form.anubis index 4499f7e..6d24ed2 100644 --- a/web/CXM_form.anubis +++ b/web/CXM_form.anubis @@ -388,22 +388,22 @@ public define HTML_In_Form selector(options, label, id, wan, size, items, selected, mand) then if selected is { - failure then selector(options, label + star(mand), id, wan, size, items), - success(default) then selector(options, label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), + failure then selector([class("in") . options], label + star(mand), id, wan, size, items), + success(default) then selector([class("in") . options], label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), }, selector_c(options, label, id, wan, size, items, selected, mand) then if selected is { - failure then selector_c(options, label + star(mand), id, wan, size, items), - success(default) then selector_c(options, label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), + failure then selector_c([class("in") . options], label + star(mand), id, wan, size, items), + success(default) then selector_c([class("in") . options], label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), }, checkbox(options, label, id, wan, val, checked, mand) then - check_box(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), + check_box([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), checkboxr(options, label, id, wan, val, checked, mand) then - check_box_r(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), + check_box_r([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), checkbox_hide_show(options, label, wan, val, checked, fields) then with div_id = generate_random_string(15), @@ -413,10 +413,10 @@ public define HTML_In_Form ]), radio_button(options, label, id, wan, val, checked, mand) then - radio_button(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), + radio_button([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), radio_buttonr(options, label, id, wan, val, checked, mand) then - radio_button_r(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), + radio_button_r([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), radio_button_list (options, label, id, wan, items, selected, mand, wide) then with new_selected = @@ -446,7 +446,7 @@ public define HTML_In_Form , upload(options, label, id, name, w, mand) then - file_upload(options, label + star(mand), id, name, pixels(w)), + file_upload([class("in") . options], label + star(mand), id, name, pixels(w)), raw_in_form(html) then html, // div([class("in")], html), -- libgit2 0.21.4