Przeglądaj źródła

new check_configure_kerio_buisness_mail.tpl

andre 6 miesięcy temu
rodzic
commit
c9a2eea6ed
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      check_configure_kerio_buisness_mail.tpl

+ 7 - 2
check_configure_kerio_buisness_mail.tpl

@@ -30,7 +30,12 @@
         $(customFields[0]).val(''); // domain
         $(customFields[0]).val(''); // domain
         $(checkBox[0]).removeClass('checked'); // checkbox
         $(checkBox[0]).removeClass('checked'); // checkbox
         $(customFields[0]).blur(function () {
         $(customFields[0]).blur(function () {
-            checkDomain( $(customFields[0]).val(), {$productinfo['pid']});
+            checkDomain( $(customFields[0]).val().trim(), {$productinfo['pid']});
+        });
+        $(customFields[0]).paste(function () {
+            setTimeout(function () {
+                checkDomain( $(customFields[0]).val().trim(), {$productinfo['pid']});
+            }, 1);
         });
         });
         $(customFields[0]).focus(function () {
         $(customFields[0]).focus(function () {
             $(customFields[0]).addClass('has-success');
             $(customFields[0]).addClass('has-success');
@@ -43,7 +48,7 @@
             } else {
             } else {
                 $("#btnCompleteProductConfig").prop("disabled",true);
                 $("#btnCompleteProductConfig").prop("disabled",true);
             }
             }
-            checkDomain( $(customFields[0]).val(), {$productinfo['pid']});
+            checkDomain( $(customFields[0]).val().trim(), {$productinfo['pid']});
         });
         });
         $(checkBox[0]).hover (function () {
         $(checkBox[0]).hover (function () {
             $("#hint").text('Akzeptieren Sie die erweiterten Nutzungsbedingungen');
             $("#hint").text('Akzeptieren Sie die erweiterten Nutzungsbedingungen');