[icinga-checkins] icinga.org: icingaweb2-module-director/master: js: fix collapsed element count for extensible sets

git at icinga.org git at icinga.org
Thu Jun 16 15:09:51 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: c43e790a9b06f136f483ed36e43e2e83129f0c97
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=c43e790a9b06f136f483ed36e43e2e83129f0c97

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Jun 15 18:38:37 2016 +0200

js: fix collapsed element count for extensible sets

---

 public/js/module.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/js/module.js b/public/js/module.js
index a7644f5..844d80e 100644
--- a/public/js/module.js
+++ b/public/js/module.js
@@ -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 {



More information about the icinga-checkins mailing list