|
|
@@ -1,6 +1,16 @@
|
|
|
{literal}
|
|
|
<script>
|
|
|
-jQuery(document).ready(function(){
|
|
|
+ jQuery(document).ready(function(){
|
|
|
+ $("#btnCompleteProductConfig").prop("disabled",true);
|
|
|
+ customFields = $("*[id^='customfield']");
|
|
|
+ $(inputNewPassword1).prop("disabled",true);
|
|
|
+ $(inputNewPassword2).prop("disabled",true);
|
|
|
+ $(customFields[2]).blur(function () {
|
|
|
+ checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
|
|
|
+ });
|
|
|
+ $(customFields[3]).change(function () {
|
|
|
+ checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
|
|
|
+ });
|
|
|
$(inputNewPassword1).focus (function () {
|
|
|
$("#hintHead").text('Tipps für ein gutes Passwort');
|
|
|
$("#hintLength").text('Benutzen Sie mindestens 8 Zeichen');
|
|
|
@@ -8,12 +18,12 @@ jQuery(document).ready(function(){
|
|
|
$("#hintSymbols").text('Benutzen Sie auch mindestens eines der folgenden Symbole (# $ ! % + - etc...)');
|
|
|
$("#hintUpperLower").text('Benutzen Sie Groß- und Kleinschreibung');
|
|
|
});
|
|
|
- $(inputNewPassword1.keyup(function () {
|
|
|
+ $(inputNewPassword1).keyup(function () {
|
|
|
var pwlengthOK = false;
|
|
|
var numericOK = false;
|
|
|
var symbolsOK = false;
|
|
|
var upperOK = false;
|
|
|
- var pw = $(inputNewPassword1.val();
|
|
|
+ var pw = $(inputNewPassword1).val();
|
|
|
var pwlength = (pw.length);
|
|
|
if (pwlength > 7) {
|
|
|
pwlengthOK = true;
|
|
|
@@ -53,31 +63,31 @@ jQuery(document).ready(function(){
|
|
|
}
|
|
|
$(inputNewPassword1).removeClass('has-error has-warning has-success');
|
|
|
if (pwlengthOK && numericOK && symbolsOK && upperlowerOK) {
|
|
|
- $(newPassword2).prop("disabled",false);
|
|
|
+ $(inputNewPassword2).prop("disabled",false);
|
|
|
$(inputNewPassword1).addClass('has-success');
|
|
|
$(inputNewPassword1).css('background-color', '#0f03');;
|
|
|
$("#hintHead").text('');
|
|
|
} else {
|
|
|
- $(newPassword2).prop("disabled",true);
|
|
|
+ $(inputNewPassword2).prop("disabled",true);
|
|
|
$(inputNewPassword1).addClass('has-error');
|
|
|
$(inputNewPassword1).css('background-color', '#f003');;
|
|
|
$("#hintHead").text('Tipps für ein gutes Passwort');
|
|
|
}
|
|
|
});
|
|
|
- $(newPassword2).keyup(function () {
|
|
|
- if ($(newPassword2).val() == $(newPassword1).val()) {
|
|
|
+ $(inputNewPassword2).keyup(function () {
|
|
|
+ if ($(inputNewPassword2).val() == $(inputNewPassword1).val()) {
|
|
|
$("#btnCompleteProductConfig").prop("disabled",false);
|
|
|
- $(newPassword2).addClass('has-success');
|
|
|
- $(newPassword2).css('background-color', '#0f03');;
|
|
|
+ $(inputNewPassword2).addClass('has-success');
|
|
|
+ $(inputNewPassword2).css('background-color', '#0f03');;
|
|
|
$("#hintHead").text('');
|
|
|
} else {
|
|
|
$("#btnCompleteProductConfig").prop("disabled",true);
|
|
|
- $(newPassword2).addClass('has-error');
|
|
|
- $(newPassword2).css('background-color', '#f003');;
|
|
|
+ $(inputNewPassword2).addClass('has-error');
|
|
|
+ $(inputNewPassword2).css('background-color', '#f003');;
|
|
|
$("#hintHead").text('Passworte stimmen nicht überein!');
|
|
|
}
|
|
|
});
|
|
|
-});
|
|
|
+ });
|
|
|
</script>
|
|
|
{/literal}
|
|
|
|