Merge pull request #669 from mikeyc7m/Branch_4.5.3

fix for broken validation on optionsets
This commit is contained in:
Robbie Averill 2017-10-06 10:31:48 +13:00 committed by GitHub
commit 7db0b1d24a

View File

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