update predavanja
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user