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

new check_configure_kerio_buisness_mail.tpl

andre 6 месяцев назад
Родитель
Сommit
27c3e4d2b3
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      check_configure_kerio_buisness_mail.tpl

+ 4 - 3
check_configure_kerio_buisness_mail.tpl

@@ -22,13 +22,14 @@
     };
     jQuery(document).ready(function(){
         customFields = $("*[id^='customfield']");
+        checkBoxes = $("*[id^='iCheck-customfield']");
         $("#btnCompleteProductConfig").prop("disabled",true);
         $(customFields[0]).val(''); // domain
-        $(customFields[1]).val(''); // checkbox
+        $(customFields[1]).val('on'); // checkbox
         $(customFields[0]).blur(function () {
             checkDomain( $(customFields[0]).val(), {$productinfo['pid']});
         });
-        $(customFields[1]).click(function () {
+        $(checkBoxes[0]).click(function () {
             checkDomain( $(customFields[0]).val(), {$productinfo['pid']});
             if ($(customFields[1]).val() == 'on') {
                 $("#btnCompleteProductConfig").prop("disabled",false);
@@ -42,7 +43,7 @@
                 $("#hint").text('Akzeptieren Sie die erweiterten Nutzungsbedingungen');
             }
         });
-        $(customFields[1]).focus (function () {
+        $(checkBoxes[0]).focus (function () {
             $("#hint").text('Akzeptieren Sie die erweiterten Nutzungsbedingungen');
         });
     });