Quellcode durchsuchen

new check_configure_kerio_buisness_mail.tpl

andre vor 6 Monaten
Ursprung
Commit
42b407260c
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      check_configure_kerio_buisness_mail.tpl

+ 3 - 2
check_configure_kerio_buisness_mail.tpl

@@ -19,6 +19,7 @@
                     $(customFields[0]).addClass('has-error');
                     $(customFields[0]).removeClass('has-success');
                     $("#hint").text('Domain ' + $(customFields[0]).val() + ' nicht verfügbar!');
+                    $("#btnCompleteProductConfig").prop("enabled",false);
                 }
             }
         };
@@ -29,7 +30,7 @@
         customFields = $("*[id^='customfield']");
         checkBoxHelper = $("*[class^='iCheck-helper']");
         checkBox = $("*[id^='iCheck-customfield']")
-        $("#btnCompleteProductConfig").prop("enabled",true);
+        $("#btnCompleteProductConfig").prop("enabled",false);
         $(customFields[0]).val(''); // domain
         $(checkBox[0]).removeClass('checked'); // checkbox
         $(customFields[0]).blur(function () {
@@ -50,7 +51,7 @@
                 if ($(checkBox[0]).hasClass('checked')) {
                     $("#btnCompleteProductConfig").prop("enabled",false);
                 } else {
-                    $("#btnCompleteProductConfig").prop("disabled",true);
+                    $("#btnCompleteProductConfig").prop("enabled",true);
                 }
                 checkDomain( $(customFields[0]).val().trim(), {$productinfo['pid']});
             }, 1);