js: hide collapsed subform elements when not dd/dt
This commit is contained in:
parent
e7ea68b94f
commit
46bb1f7c7f
|
@ -223,7 +223,7 @@
|
|||
fixFieldsetInfo: function($fieldset) {
|
||||
if ($fieldset.hasClass('collapsed')) {
|
||||
if ($fieldset.find('legend span.element-count').length === 0) {
|
||||
var cnt = $fieldset.find('dt').length;
|
||||
var cnt = $fieldset.find('dt, li').length;
|
||||
$fieldset.find('legend').append($('<span class="element-count"> (' + cnt + ')</span>'));
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue