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