diff --git a/src/elogd.c b/src/elogd.c index d0771f84..792748d9 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10103,7 +10103,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("var last_key = 0;\n\n"); rsprintf("var in_asend = false;\n\n"); - rsprintf("function chkform()\n"); + rsprintf("function chkform(button)\n"); rsprintf("{\n"); rsprintf(" if (last_key == 13) {\n"); @@ -10266,7 +10266,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf(" if (autoSaveTimer != null)\n"); rsprintf(" clearTimeout(autoSaveTimer);\n"); + rsprintf(" button.disabled = true;\n"); + rsprintf(" button.value = \"%s...\";\n", loc("Please wait")); rsprintf(" submitted = true;\n"); + rsprintf(" document.getElementById(\"form1\").elements['cmd'][0].value = \"%s\";\n", loc("Submit")); + rsprintf(" document.getElementById(\"form1\").submit();\n"); rsprintf(" return true;\n"); rsprintf("}\n\n"); @@ -10575,7 +10579,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf(">\n"); show_top_text(lbs); - rsprintf("
\n"); /*---- add password in case cookie expires during edit ----*/ @@ -10613,7 +10617,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL /* default cmd */ rsprintf("\n", loc("Update")); - rsprintf("\n", + rsprintf("\n", loc("Submit")); if (!getcfg(lbs->name, "Save drafts", str, sizeof(str)) || atoi(str) == 1) @@ -12148,7 +12152,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL /*---- menu buttons again ----*/ rsprintf("\n"); - rsprintf("\n", + rsprintf("\n", loc("Submit")); if (!getcfg(lbs->name, "Save drafts", str, sizeof(str)) || atoi(str) == 1) @@ -14356,7 +14360,7 @@ void show_new_user_page(LOGBOOK * lbs, char *user) show_html_header(lbs, TRUE, loc("ELOG new user"), TRUE, FALSE, NULL, FALSE, 0); rsprintf("


\n"); show_top_text(lbs); - rsprintf("\n\n"); + rsprintf("\n\n"); /*---- title ----*/ @@ -26355,7 +26359,7 @@ void show_login_page(LOGBOOK * lbs, char *redir, int fail) /* set focus on name field */ rsprintf("\n"); - rsprintf("\n\n"); + rsprintf("\n\n"); /* define hidden fields for current destination */ strlcpy(str, redir, sizeof(str)); @@ -27006,7 +27010,7 @@ void show_calendar(LOGBOOK * lbs) strcpy(index, "1"); show_html_header(lbs, FALSE, loc("Calendar"), TRUE, FALSE, NULL, FALSE, 0); - rsprintf("\n"); + rsprintf("\n"); rsprintf("\n", index); rsprintf("\n", cur_year); @@ -27109,7 +27113,7 @@ void show_uploader(LOGBOOK * lbs) char str[256]; show_html_header(lbs, FALSE, loc("Upload image"), TRUE, FALSE, NULL, FALSE, 0); - rsprintf("\n"); rsprintf("\n");