fix for broken validation on optionsets

This commit is contained in:
MikeyC 2017-10-05 11:12:12 +11:00
parent 722f9d3f82
commit 4c4a3d4928

View File

@ -84,9 +84,9 @@ jQuery(function ($) {
error.addClass('message');
if (element.is(':radio') || element.parents('.checkboxset').length > 0) {
error.insertAfter(element.closest('ul'));
error.appendTo(element.closest('.middleColumn'));
} else if (element.parents('.checkbox').length > 0) {
error.insertAfter(element.next('label'));
error.appendTo(element.closest('.field'));
} else {
error.insertAfter(element);
}