Revised the text messages in the account form in the accounting application.

This commit is contained in:
imacat committed 2020-08-09 12:17:07 +08:00
1 parent 724ba44a71
commit 06631d2df1
5 files changed
+289 -223

No files matched your search

@@ -118,9 +118,9 @@ function validateCode() {
errorMessage.text(gettext("Please fill in the code."));
return false;
}
if (!code.value.match(/^[1-9][0-9]*$/)) {
if (!code.value.match(/^[1-9]+$/)) {
code.classList.add("is-invalid");
errorMessage.text(gettext("You can only use a number as the code"));
errorMessage.text(gettext("You can only use numbers 1-9 in the code."));
return false;
}
const originalCode = $("#account-code-original").val();