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

new check_configure_kerio_buisness_mail.tpl

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

+ 6 - 2
check_configure_kerio_buisness_mail.tpl

@@ -6,11 +6,15 @@
             if (this.readyState == 4 && this.status == 200) {
             if (this.readyState == 4 && this.status == 200) {
                 if( this.responseText.trim() == 'yes') {
                 if( this.responseText.trim() == 'yes') {
                     console.log(this.responseText);
                     console.log(this.responseText);
-                    $(customFields[0]).css('background-color', '#0f03');;
+                    $(customFields[0]).addClass('has-success');
+                    $(customFields[0]).removeClass('has-error');
+                    $(customFields[0]).css('background-color', '#0f03');
                     $("#hint").text('');
                     $("#hint").text('');
                 } else {
                 } else {
                     console.log(this.responseText);
                     console.log(this.responseText);
-                    $(customFields[0]).css('background-color', '#f003');;
+                    $(customFields[0]).addClass('has-error');
+                    $(customFields[0]).removeClass('has-success');
+                    $(customFields[0]).css('background-color', '#f003');
                     $("#hint").text('Domain ' + $(customFields[0]).val() + ' nicht verfügbar!');
                     $("#hint").text('Domain ' + $(customFields[0]).val() + ' nicht verfügbar!');
                 }
                 }
             }
             }