Przeglądaj źródła

check form if already filled

andre 4 lat temu
rodzic
commit
14afd15df9
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      checkconfigureproduct.tpl

+ 3 - 1
checkconfigureproduct.tpl

@@ -37,7 +37,9 @@
         $("#btnCompleteProductConfig").prop("disabled",true);
         $(customFields[4]).val('');
         $(customFields[5]).val('');
-        checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
+        if ($(customFields[3]).val().length > 0) {
+            checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
+        }
         $(customFields[4]).prop("disabled",true);
         $(customFields[5]).prop("disabled",true);
         $(customFields[2]).blur(function () {