diff options
author | onefang | 2020-03-18 23:51:54 +1000 |
---|---|---|
committer | onefang | 2020-03-18 23:51:54 +1000 |
commit | e2a3f32f7c268b82f63c079ff2b1c81d1de024d2 (patch) | |
tree | b6de86ca19638622bfcf8dc1ca77d1fd56dfef50 | |
parent | Major rewrite of the validation code. (diff) | |
download | opensim-SC-e2a3f32f7c268b82f63c079ff2b1c81d1de024d2.zip opensim-SC-e2a3f32f7c268b82f63c079ff2b1c81d1de024d2.tar.gz opensim-SC-e2a3f32f7c268b82f63c079ff2b1c81d1de024d2.tar.bz2 opensim-SC-e2a3f32f7c268b82f63c079ff2b1c81d1de024d2.tar.xz |
Make HTML checkbox validation work.
Diffstat (limited to '')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 8bcf076..6a971c8 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -2231,6 +2231,8 @@ static void HTMLformEnd(qgrow_t *reply) | |||
2231 | 2231 | ||
2232 | static void HTMLcheckBox(qgrow_t *reply, char *name, char *title, boolean checked, boolean required) | 2232 | static void HTMLcheckBox(qgrow_t *reply, char *name, char *title, boolean checked, boolean required) |
2233 | { | 2233 | { |
2234 | // HTML is an absolute fucking horror. This is so that we got an off sent to us if the checkbox is off, otherwise we get nothing. | ||
2235 | HTMLhidden(reply, name, "off"); | ||
2234 | reply->addstrf(reply, " <p>"); | 2236 | reply->addstrf(reply, " <p>"); |
2235 | reply->addstrf(reply, "<label><input type=\"checkbox\" name=\"%s\"", name); | 2237 | reply->addstrf(reply, "<label><input type=\"checkbox\" name=\"%s\"", name); |
2236 | if (checked) | 2238 | if (checked) |