|
|
@@ -1,5 +1,5 @@
|
|
|
<script>
|
|
|
- function checkMailAddress ( mailname, maildomain) {
|
|
|
+ function checkMailAddress ( mailname, maildomain, pid) {
|
|
|
var xhttp = new XMLHttpRequest();
|
|
|
xhttp.onreadystatechange = function() {
|
|
|
if (this.readyState == 4 && this.status == 200) {
|
|
|
@@ -28,7 +28,7 @@
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- xhttp.open("GET", "modules/servers/zimbraSingle/zimbraAddressCheck.php?name=" + mailname + '&domain=' + maildomain + '&pid' + {pid}, true);
|
|
|
+ xhttp.open("GET", "modules/servers/zimbraSingle/zimbraAddressAvailable.php?name=" + mailname + '&domain=' + maildomain + '&pid=' + pid, true);
|
|
|
xhttp.send();
|
|
|
};
|
|
|
jQuery(document).ready(function(){
|
|
|
@@ -37,10 +37,10 @@
|
|
|
$(customFields[4]).prop("disabled",true);
|
|
|
$(customFields[5]).prop("disabled",true);
|
|
|
$(customFields[2]).blur(function () {
|
|
|
- checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val());
|
|
|
+ checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
|
|
|
});
|
|
|
$(customFields[3]).change(function () {
|
|
|
- checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val());
|
|
|
+ checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
|
|
|
});
|
|
|
$(customFields[4]).focus (function () {
|
|
|
$("#hintHead").text('Tipps für ein gutes Passwort');
|
|
|
@@ -119,5 +119,4 @@
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
-</script>
|
|
|
-
|
|
|
+</script>
|