[icinga-checkins] icinga.org: icinga-web/master: * Type error in SLA jit functiony

git at icinga.org git at icinga.org
Mon Nov 21 12:15:15 CET 2011


Module: icinga-web
Branch: master
Commit: 93eb63441b308aba510fac7a92bd9bafb82899f5
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=93eb63441b308aba510fac7a92bd9bafb82899f5

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Mon Nov 21 12:15:05 2011 +0100

* Type error in SLA jit functiony

---

 .../Cronks/lib/js/Cronks/Tackle/SLAChartPanel.js   |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronks/Tackle/SLAChartPanel.js b/app/modules/Cronks/lib/js/Cronks/Tackle/SLAChartPanel.js
index 2d11547..4107ab1 100644
--- a/app/modules/Cronks/lib/js/Cronks/Tackle/SLAChartPanel.js
+++ b/app/modules/Cronks/lib/js/Cronks/Tackle/SLAChartPanel.js
@@ -95,7 +95,7 @@ Ext.ns('Icinga.Cronks.Tackle.Information');
         },
         
         getState: function(code) {
-            switch(code) {
+            switch(parseInt(code,10)) {
                 case 0:
                     return this.type === 'host' ? _('Up') : _('Ok');
                 case 1:
@@ -107,7 +107,7 @@ Ext.ns('Icinga.Cronks.Tackle.Information');
             }
         },
         getStateColor: function(code) {
-            switch(code) {
+            switch(parseInt(code,10)) {
                 case 0:
                     return '#00ff00';
                 case 1:
@@ -153,9 +153,9 @@ Ext.ns('Icinga.Cronks.Tackle.Information');
               showLabels:true,
               updateHeights: false,
               Label: {
-                type: 'Native', //Native or HTML
+                type: 'HTML', //Native or HTML
                 size: 12,
-                family: 'verdana',
+                family: 'arial',
                 color: 'black'
               },
               //enable tips





More information about the icinga-checkins mailing list