|
@@ -1,3 +1,8 @@
|
|
|
|
|
+<style>
|
|
|
|
|
+.has-success { background-color: #f003 !important; }
|
|
|
|
|
+.has-error { background-color: #0f03 !important; }
|
|
|
|
|
+</style>
|
|
|
|
|
+
|
|
|
<script>
|
|
<script>
|
|
|
function checkDomain (domain, pid) {
|
|
function checkDomain (domain, pid) {
|
|
|
var xhttp = new XMLHttpRequest();
|
|
var xhttp = new XMLHttpRequest();
|
|
@@ -8,13 +13,11 @@
|
|
|
console.log(this.responseText);
|
|
console.log(this.responseText);
|
|
|
$(customFields[0]).addClass('has-success');
|
|
$(customFields[0]).addClass('has-success');
|
|
|
$(customFields[0]).removeClass('has-error');
|
|
$(customFields[0]).removeClass('has-error');
|
|
|
- $(customFields[0]).style.setProperty('background-color', '#0f03', 'important');
|
|
|
|
|
$("#hint").text('');
|
|
$("#hint").text('');
|
|
|
} else {
|
|
} else {
|
|
|
console.log(this.responseText);
|
|
console.log(this.responseText);
|
|
|
$(customFields[0]).addClass('has-error');
|
|
$(customFields[0]).addClass('has-error');
|
|
|
$(customFields[0]).removeClass('has-success');
|
|
$(customFields[0]).removeClass('has-success');
|
|
|
- $(customFields[0]).style.setProperty('background-color', '#f003', 'important');
|
|
|
|
|
$("#hint").text('Domain ' + $(customFields[0]).val() + ' nicht verfügbar!');
|
|
$("#hint").text('Domain ' + $(customFields[0]).val() + ' nicht verfügbar!');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|