aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-04-21 02:31:33 +1000
committeronefang2020-04-21 02:31:33 +1000
commit619354a8895a7a744c0623db834dda4e44874398 (patch)
tree942776eace73d24ac14773c2a401ef3f7596cd2f
parentThe example "start a single sim" script also updated. (diff)
downloadopensim-SC_OLD-619354a8895a7a744c0623db834dda4e44874398.zip
opensim-SC_OLD-619354a8895a7a744c0623db834dda4e44874398.tar.gz
opensim-SC_OLD-619354a8895a7a744c0623db834dda4e44874398.tar.bz2
opensim-SC_OLD-619354a8895a7a744c0623db834dda4e44874398.tar.xz
Fix up buttons to show a different title to the name.
-rw-r--r--src/sledjchisl/sledjchisl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index f21b2a6..a62948b 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -2451,9 +2451,9 @@ static void HTMLoption(qgrow_t *reply, char *title, boolean selected)
2451 reply->addstrf(reply, " <option value=\"%s\"%s>%s</option>\n", title, sel, title); 2451 reply->addstrf(reply, " <option value=\"%s\"%s>%s</option>\n", title, sel, title);
2452} 2452}
2453 2453
2454static void HTMLbutton(qgrow_t *reply, char *title) 2454static void HTMLbutton(qgrow_t *reply, char *name, char *title)
2455{ 2455{
2456 reply->addstrf(reply, " <button type=\"submit\" name=\"doit\" value=\"%s\">%s</button>\n", title, title); 2456 reply->addstrf(reply, " <button type=\"submit\" name=\"doit\" value=\"%s\">%s</button>\n", name, title);
2457} 2457}
2458 2458
2459static void HTMLlist(qgrow_t *reply, char *title, qlist_t *list) 2459static void HTMLlist(qgrow_t *reply, char *title, qlist_t *list)
@@ -4268,7 +4268,7 @@ static void accountWebSubs(reqData *Rd, inputForm *oF)
4268 { 4268 {
4269 inputSub *sub = (inputSub *) obj.data; 4269 inputSub *sub = (inputSub *) obj.data;
4270 if ('\0' != sub->title[0]) 4270 if ('\0' != sub->title[0])
4271 HTMLbutton(Rd->reply, sub->title); 4271 HTMLbutton(Rd->reply, sub->name, sub->title);
4272//d("accountWebSubs(%s, %s '%s')", oF->name, sub->name, sub->title); 4272//d("accountWebSubs(%s, %s '%s')", oF->name, sub->name, sub->title);
4273 } 4273 }
4274 oF->subs->unlock(oF->subs); 4274 oF->subs->unlock(oF->subs);
@@ -4984,8 +4984,8 @@ void listPage(reqData *Rd, char *message)
4984 HTMLhidden(Rd->reply, "name", name); 4984 HTMLhidden(Rd->reply, "name", name);
4985 HTMLhidden(Rd->reply, "UUID", Rd->shs.UUID); 4985 HTMLhidden(Rd->reply, "UUID", Rd->shs.UUID);
4986 Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />\n"); // Stop Enter key on text fields triggering the first submit button. 4986 Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />\n"); // Stop Enter key on text fields triggering the first submit button.
4987 HTMLbutton(Rd->reply, "me"); 4987 HTMLbutton(Rd->reply, "me", "me");
4988 HTMLbutton(Rd->reply, "logout"); 4988 HTMLbutton(Rd->reply, "logout", "logout");
4989 if (0 != Rd->errors->size(Rd->errors)) 4989 if (0 != Rd->errors->size(Rd->errors))
4990 HTMLlist(Rd->reply, "errors -", Rd->errors); 4990 HTMLlist(Rd->reply, "errors -", Rd->errors);
4991 Rd->reply->addstrf(Rd->reply, "<p>%s</p>\n", message); 4991 Rd->reply->addstrf(Rd->reply, "<p>%s</p>\n", message);