[icinga-checkins] icinga.org: icingaweb2/master: Fix hint counter on unselect the last row

git at icinga.org git at icinga.org
Fri Nov 14 10:17:37 CET 2014


Module: icingaweb2
Branch: master
Commit: 540a8c7aa467b417589cf047c9f7dd860f728da1
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=540a8c7aa467b417589cf047c9f7dd860f728da1

Author: Alexander Fuhr <alexander.fuhr at netways.de>
Date:   Fri Nov 14 10:15:37 2014 +0100

Fix hint counter on unselect the last row

refs #7654

---

 public/js/icinga/ui.js |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js
index ed7cda5..d1c6ab5 100644
--- a/public/js/icinga/ui.js
+++ b/public/js/icinga/ui.js
@@ -480,6 +480,13 @@
         provideSelectionCount: function() {
             var $count = $('.selection-info-count');
 
+            console.log(selectionData);
+
+            if (typeof selectionData === 'undefined' || selectionData === null) {
+                $count.text(0);
+                return;
+            }
+
             if (typeof selectionData === 'string') {
                 $count.text(1);
             } else if (selectionData.length > 1) {



More information about the icinga-checkins mailing list