]> wagnertech.de Git - mfinanz.git/blobdiff - js/common.js
Formulardaten für Datumsangabe gequoted, da hier sonst onBlur... im value stand.
[mfinanz.git] / js / common.js
index dd0e0ec696b43263d711d7a761940013db83048a..15a507113cd0f557f0d5cb01c244d03c96a2b762 100644 (file)
@@ -80,6 +80,9 @@ function check_right_number_format(input_name) {
 }
 
 function check_right_date_format(input_name) {
+  if(input_name.value == "") {
+    return true;
+  }
   var matching = new RegExp(dateFormat.replace(/\w/g, '\\d') + "\$","ig");
   if(!(dateFormat.lastIndexOf("y") == 3) && !matching.test(input_name.value)) {
     matching = new RegExp(dateFormat.replace(/\w/g, '\\d') + '\\d\\d\$', "ig");