[icinga-checkins] icinga.org: icinga-web/mhein/default: * Readded render lag-tolerance to renderers

git at icinga.org git at icinga.org
Fri Nov 18 17:58:31 CET 2011


Module: icinga-web
Branch: mhein/default
Commit: 0b27c395d9939115f3d371cb246c52747049d4f5
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=0b27c395d9939115f3d371cb246c52747049d4f5

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Fri Nov 18 13:55:23 2011 +0100

* Readded render lag-tolerance to renderers

---

 .../Tackle/Renderer/ServiceHealthRenderer.js       |    9 +++++----
 .../Cronks/Tackle/Renderer/StatusColumnRenderer.js |    3 ++-
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/ServiceHealthRenderer.js b/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/ServiceHealthRenderer.js
index 0fe1553..33d8726 100644
--- a/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/ServiceHealthRenderer.js
+++ b/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/ServiceHealthRenderer.js
@@ -10,12 +10,13 @@ Ext.ns('Icinga.Cronks.Tackle.Renderer');
         var _this = this;
 
         var render = function (nrOfTry) {
-        /*    nrOfTry = nrOfTry || 1;
-            if(!Ext.get(id)) {
-                render.defer(100,this,[nrOfTry+1]);
+            nrOfTry = nrOfTry || 1;
+            if(!Ext.get(id) ) {
+                if(nrOfTry < 4)
+                    render.defer(100,this,[nrOfTry+1]);
                 return false;
             }
-*/
+
             var cmp = new Ext.BoxComponent({
                 layout: 'fit',
                 tpl: new Ext.XTemplate(
diff --git a/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/StatusColumnRenderer.js b/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/StatusColumnRenderer.js
index 7508c14..ecba3f4 100644
--- a/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/StatusColumnRenderer.js
+++ b/app/modules/Cronks/lib/js/Cronks/Tackle/Renderer/StatusColumnRenderer.js
@@ -183,7 +183,8 @@ Ext.ns('Icinga.Cronks.Tackle.Renderer');
             nrOfTry = nrOfTry || 1;
 
             if(!Ext.get(id)) {
-                render.defer(400,this,[nrOfTry+1]);
+                if(nrOfTry < 4)
+                    render.defer(100,this,[nrOfTry+1]);
                 return false;
             }
 





More information about the icinga-checkins mailing list