|
@@ -55,6 +55,19 @@
|
|
|
$("#hintHead").text('Tipps für ein gutes Passwort');
|
|
$("#hintHead").text('Tipps für ein gutes Passwort');
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
+ function checkPWRepeat() {
|
|
|
|
|
+ if ($(customFields[5]).val() == $(customFields[4]).val()) {
|
|
|
|
|
+ $("#btnCompleteProductConfig").prop("disabled",false);
|
|
|
|
|
+ $(customFields[5]).addClass('has-success');
|
|
|
|
|
+ $(customFields[5]).css('background-color', '#0f03');;
|
|
|
|
|
+ $("#hintHead").text('');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("#btnCompleteProductConfig").prop("disabled",true);
|
|
|
|
|
+ $(customFields[5]).addClass('has-error');
|
|
|
|
|
+ $(customFields[5]).css('background-color', '#f003');;
|
|
|
|
|
+ $("#hintHead").text('Passworte stimmen nicht überein!');
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
function checkMailAddress ( mailname, maildomain, pid) {
|
|
function checkMailAddress ( mailname, maildomain, pid) {
|
|
|
var xhttp = new XMLHttpRequest();
|
|
var xhttp = new XMLHttpRequest();
|
|
|
var success = false;
|
|
var success = false;
|
|
@@ -111,18 +124,6 @@
|
|
|
$("#hintUpperLower").text('Benutzen Sie Groß- und Kleinschreibung');
|
|
$("#hintUpperLower").text('Benutzen Sie Groß- und Kleinschreibung');
|
|
|
});
|
|
});
|
|
|
$(customFields[4]).keyup(checkPW());
|
|
$(customFields[4]).keyup(checkPW());
|
|
|
- $(customFields[5]).keyup(function () {
|
|
|
|
|
- if ($(customFields[5]).val() == $(customFields[4]).val()) {
|
|
|
|
|
- $("#btnCompleteProductConfig").prop("disabled",false);
|
|
|
|
|
- $(customFields[5]).addClass('has-success');
|
|
|
|
|
- $(customFields[5]).css('background-color', '#0f03');;
|
|
|
|
|
- $("#hintHead").text('');
|
|
|
|
|
- } else {
|
|
|
|
|
- $("#btnCompleteProductConfig").prop("disabled",true);
|
|
|
|
|
- $(customFields[5]).addClass('has-error');
|
|
|
|
|
- $(customFields[5]).css('background-color', '#f003');;
|
|
|
|
|
- $("#hintHead").text('Passworte stimmen nicht überein!');
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ $(customFields[5]).keyup(checkPWRepeat());
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|