js: fix collapsed element count for extensible sets
This commit is contained in:
parent
df58ea0e69
commit
c43e790a9b
|
@ -291,7 +291,7 @@
|
||||||
fixFieldsetInfo: function($fieldset) {
|
fixFieldsetInfo: function($fieldset) {
|
||||||
if ($fieldset.hasClass('collapsed')) {
|
if ($fieldset.hasClass('collapsed')) {
|
||||||
if ($fieldset.find('legend span.element-count').length === 0) {
|
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>'));
|
$fieldset.find('legend').append($('<span class="element-count"> (' + cnt + ')</span>'));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue