mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-10-01 05:05:19 +00:00
Fixed JavaScript check for required date_time attributes
SVN revision: 2228
This commit is contained in:
parent
1683afdd31
commit
153e4f1616
@ -9672,10 +9672,10 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf(" document.form1.n%d.focus();\n", i);
|
rsprintf(" document.form1.n%d.focus();\n", i);
|
||||||
rsprintf(" return false;\n");
|
rsprintf(" return false;\n");
|
||||||
rsprintf(" }\n");
|
rsprintf(" }\n");
|
||||||
rsprintf(" if (document.form1.s%d.value == \"\") {\n", i);
|
rsprintf(" if (document.form1.c%d.value == \"\") {\n", i);
|
||||||
sprintf(str, loc("Please enter second for attribute '%s'"), attr_list[i]);
|
sprintf(str, loc("Please enter second for attribute '%s'"), attr_list[i]);
|
||||||
rsprintf(" alert(\"%s\");\n", str);
|
rsprintf(" alert(\"%s\");\n", str);
|
||||||
rsprintf(" document.form1.s%d.focus();\n", i);
|
rsprintf(" document.form1.c%d.focus();\n", i);
|
||||||
rsprintf(" return false;\n");
|
rsprintf(" return false;\n");
|
||||||
rsprintf(" }\n");
|
rsprintf(" }\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user