mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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) {
|
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').length;
|
var cnt = $fieldset.find('dt, 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…
x
Reference in New Issue
Block a user