andre 4 лет назад
Родитель
Сommit
a033155db5
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      checkconfigureproduct.tpl

+ 2 - 3
checkconfigureproduct.tpl

@@ -1,10 +1,9 @@
 <script>
-    function checkPW(customFields) {
+    function checkPW(pw) {
         var pwlengthOK = false;
         var numericOK = false;
         var symbolsOK = false;
         var upperOK = false;
-        var pw = $(customFields[4]).val();
         console.log(pw);
         var pwlength = (pw.length);
         if (pwlength > 7) {
@@ -124,7 +123,7 @@
             $("#hintSymbols").text('Benutzen Sie auch mindestens eines der folgenden Symbole (# $ ! % + - etc...)');
             $("#hintUpperLower").text('Benutzen Sie Groß- und Kleinschreibung');
         });
-        $(customFields[4]).keyup(checkPW(customFields));
+        $(customFields[4]).keyup(checkPW($(customFields[4].val())));
         $(customFields[5]).keyup(checkPWRepeat(customFields));
     });
 </script>