js: fix collapsed element count for extensible sets

This commit is contained in:
Thomas Gelf 2016-06-15 18:38:37 +02:00
parent df58ea0e69
commit c43e790a9b
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@
fixFieldsetInfo: function($fieldset) {
if ($fieldset.hasClass('collapsed')) {
if ($fieldset.find('legend span.element-count').length === 0) {
var cnt = $fieldset.find('dt, li').length;
var cnt = $fieldset.find('dt, li').not('.extensible-set li').length;
$fieldset.find('legend').append($('<span class="element-count"> (' + cnt + ')</span>'));
}
} else {