Просмотр исходного кода

Merge branch 'flexSize' of andre/whmcsZimbraSingle into noDownGrade

andre 4 лет назад
Родитель
Сommit
1300b13d34
1 измененных файлов с 5 добавлено и 6 удалено
  1. 5 6
      templates/orderforms/croster_mailbox/checkconfigureproduct.tpl

+ 5 - 6
templates/orderforms/croster_mailbox/checkconfigureproduct.tpl

@@ -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, 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>