mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
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…
x
Reference in New Issue
Block a user