[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Conform view for Instance status

git at icinga.org git at icinga.org
Wed Aug 24 10:13:25 CEST 2011


Module: icinga-web
Branch: jmosshammer/default
Commit: 54697b206ed552073c6b30cee0aa6ef96bdf0749
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=54697b206ed552073c6b30cee0aa6ef96bdf0749

Author: Marius Hein <marius.hein at netways.de>
Date:   Wed Aug 24 09:25:40 2011 +0200

* Conform view for Instance status

---

 .../Cronks/Icinga.Cronks.System.StatusOverall.js   |    6 +++++-
 doc/VERSION                                        |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronks/Icinga.Cronks.System.StatusOverall.js b/app/modules/Cronks/lib/js/Cronks/Icinga.Cronks.System.StatusOverall.js
index 194a4fb..39582ad 100644
--- a/app/modules/Cronks/lib/js/Cronks/Icinga.Cronks.System.StatusOverall.js
+++ b/app/modules/Cronks/lib/js/Cronks/Icinga.Cronks.System.StatusOverall.js
@@ -24,7 +24,11 @@ Icinga.Cronks.System.StatusOverall.renderer = {
             msg = String.format(_('{0} DOWN'), data.count);
         }
         
-        data.state = Icinga.StatusData.wrapElement('service', data.id, msg);
+        if (data.count == 0) {
+            data.state = Icinga.StatusData.wrapElement('service', data.id, msg, Icinga.DEFAULTS.STATUS_DATA.servicestatusClass[100]);
+        } else {
+            data.state = Icinga.StatusData.wrapElement('service', data.id, msg);
+        }
         
         return data;
     }
diff --git a/doc/VERSION b/doc/VERSION
index a58941b..c239c60 100644
--- a/doc/VERSION
+++ b/doc/VERSION
@@ -1 +1 @@
-1.3
\ No newline at end of file
+1.5





More information about the icinga-checkins mailing list