update predavanja

This commit is contained in:
msinkec
2021-06-11 13:22:15 +02:00
parent d2e3fd1117
commit 540f54dd06
2 changed files with 7 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",
@@ -149,8 +149,8 @@
alert("Izpolnite vsa obvezna polja!");
} 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 z vejico. Besede naj ne vsebujejo posebnih znakov.");
// } else if (!reKeyword.test(kljucneBesede)) {
// 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 ||