changeset 218:65d68ac6c5cc

Disable preliminary validation here, do it in the backend.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 17 Nov 2013 23:22:23 +0200
parents d313f9907610
children ca5ca5cf7901
files majax.php
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/majax.php	Sun Nov 17 23:03:25 2013 +0200
+++ b/majax.php	Sun Nov 17 23:22:23 2013 +0200
@@ -121,11 +121,13 @@
       case 4:
         {
           var str = strtrim(elem.value);
+          /* Disabled for now, as the backend should do these checks.
           if ((fields[id] == 1 || fields[id] == 4) && str == "")
           {
             alert("One or more of the required fields are empty.");
             return "";
           }
+          */
           if (fields[id] == 4)
             res.push(id+"="+parseInt(elem.value));
           else