mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-28 08:28:18 +00:00
Merge pull request #1269 from salvadormrf/patch-2
Keep collapsible blocks open if there is any form error.
This commit is contained in:
commit
a261d97058
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue