update predavanja

This commit is contained in:
msinkec
2021-06-11 12:57:50 +02:00
parent 169e98bf32
commit d2e3fd1117
3 changed files with 11 additions and 7 deletions

View File

@@ -97,7 +97,7 @@
}
const reEmail = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
const reKeyword = /^[a-zA-Zščđ枊ČĐĆŽ,]+$/;
const reKeyword = /^[a-zA-Zščđ枊ČĐĆŽ, ]+$/;
Dropzone.options.myDropzone = { // The camelized version of the ID of the form element
url: "/predavanja/upload",
@@ -150,7 +150,7 @@
} else if (!reEmail.test(email.toLowerCase())) {
alert("Email napačnega formata!");
} else if (!reKeyword.test(kljucneBesede)) {
alert("Ključne besede so napačnega formata! Besede ločujte s presledkom. Besede naj ne vsebujejo posebnih znakov.");
alert("Ključne besede so napačnega formata! Besede ločujte z vejico. Besede naj ne vsebujejo posebnih znakov.");
} else if (ime.length > 100 ||
naslov.length > 100 ||
predmet.length > 100 ||