Преглед изворни кода

new check_configure_kerio_buisness_mail.tpl

andre пре 6 месеци
родитељ
комит
42b407260c
1 измењених фајлова са 3 додато и 2 уклоњено
  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]).addClass('has-error');
                     $(customFields[0]).removeClass('has-success');
                     $(customFields[0]).removeClass('has-success');
                     $("#hint").text('Domain ' + $(customFields[0]).val() + ' nicht verfügbar!');
                     $("#hint").text('Domain ' + $(customFields[0]).val() + ' nicht verfügbar!');
+                    $("#btnCompleteProductConfig").prop("enabled",false);
                 }
                 }
             }
             }
         };
         };
@@ -29,7 +30,7 @@
         customFields = $("*[id^='customfield']");
         customFields = $("*[id^='customfield']");
         checkBoxHelper = $("*[class^='iCheck-helper']");
         checkBoxHelper = $("*[class^='iCheck-helper']");
         checkBox = $("*[id^='iCheck-customfield']")
         checkBox = $("*[id^='iCheck-customfield']")
-        $("#btnCompleteProductConfig").prop("enabled",true);
+        $("#btnCompleteProductConfig").prop("enabled",false);
         $(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 () {
@@ -50,7 +51,7 @@
                 if ($(checkBox[0]).hasClass('checked')) {
                 if ($(checkBox[0]).hasClass('checked')) {
                     $("#btnCompleteProductConfig").prop("enabled",false);
                     $("#btnCompleteProductConfig").prop("enabled",false);
                 } else {
                 } else {
-                    $("#btnCompleteProductConfig").prop("disabled",true);
+                    $("#btnCompleteProductConfig").prop("enabled",true);
                 }
                 }
                 checkDomain( $(customFields[0]).val().trim(), {$productinfo['pid']});
                 checkDomain( $(customFields[0]).val().trim(), {$productinfo['pid']});
             }, 1);
             }, 1);