Merge pull request #1269 from salvadormrf/patch-2

Keep collapsible blocks open if there is any form error.
This commit is contained in:
Dave Cranwell 2015-05-06 16:12:34 +01:00
commit a261d97058

View file

@ -331,7 +331,7 @@ function initCollapsibleBlocks() {
$('.object.multi-field.collapsible').each(function() {
var $li = $(this);
var $fieldset = $li.find('fieldset');
if ($li.hasClass('collapsed')) {
if ($li.hasClass('collapsed') && $li.find('.error-message').length == 0) {
$fieldset.hide();
}