From 619354a8895a7a744c0623db834dda4e44874398 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 21 Apr 2020 02:31:33 +1000 Subject: Fix up buttons to show a different title to the name. --- src/sledjchisl/sledjchisl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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) reply->addstrf(reply, " \n", title, sel, title); } -static void HTMLbutton(qgrow_t *reply, char *title) +static void HTMLbutton(qgrow_t *reply, char *name, char *title) { - reply->addstrf(reply, " \n", title, title); + reply->addstrf(reply, " \n", name, title); } static void HTMLlist(qgrow_t *reply, char *title, qlist_t *list) @@ -4268,7 +4268,7 @@ static void accountWebSubs(reqData *Rd, inputForm *oF) { inputSub *sub = (inputSub *) obj.data; if ('\0' != sub->title[0]) - HTMLbutton(Rd->reply, sub->title); + HTMLbutton(Rd->reply, sub->name, sub->title); //d("accountWebSubs(%s, %s '%s')", oF->name, sub->name, sub->title); } oF->subs->unlock(oF->subs); @@ -4984,8 +4984,8 @@ void listPage(reqData *Rd, char *message) HTMLhidden(Rd->reply, "name", name); HTMLhidden(Rd->reply, "UUID", Rd->shs.UUID); Rd->reply->addstrf(Rd->reply, "\n"); // Stop Enter key on text fields triggering the first submit button. - HTMLbutton(Rd->reply, "me"); - HTMLbutton(Rd->reply, "logout"); + HTMLbutton(Rd->reply, "me", "me"); + HTMLbutton(Rd->reply, "logout", "logout"); if (0 != Rd->errors->size(Rd->errors)) HTMLlist(Rd->reply, "errors -", Rd->errors); Rd->reply->addstrf(Rd->reply, "

%s

\n", message); -- cgit v1.1