[icinga-checkins] icinga.org: icinga-web/master: Fixed timing issues causing null-references (fixes #3265)

git at icinga.org git at icinga.org
Wed Oct 10 15:12:56 CEST 2012


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

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Wed Oct 10 15:12:26 2012 +0200

Fixed timing issues causing null-references (fixes #3265)

---

 .../js/Icinga/Cronks/System/MonitorPerformance.js  |    6 ++++--
 .../lib/js/Icinga/Cronks/System/StatusOverall.js   |    6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Icinga/Cronks/System/MonitorPerformance.js b/app/modules/Cronks/lib/js/Icinga/Cronks/System/MonitorPerformance.js
index 93230da..751c686 100755
--- a/app/modules/Cronks/lib/js/Icinga/Cronks/System/MonitorPerformance.js
+++ b/app/modules/Cronks/lib/js/Icinga/Cronks/System/MonitorPerformance.js
@@ -155,11 +155,13 @@ Ext.ns('Icinga.Cronks.System.MonitorPerformance');
             });
             
             this.store.on('beforeload', function (store, records, options) {
-                this.refreshButton.setDisabled(true);
+                if(this.refreshButton.el.dom)
+                    this.refreshButton.setDisabled(true);
             }, this);
             
             this.store.on('load', function (store, records, options) {
-                this.refreshButton.setDisabled(false);
+                if(this.refreshButton.el.dom)
+                    this.refreshButton.setDisabled(false);
             }, this);
             
             this.add({
diff --git a/app/modules/Cronks/lib/js/Icinga/Cronks/System/StatusOverall.js b/app/modules/Cronks/lib/js/Icinga/Cronks/System/StatusOverall.js
old mode 100644
new mode 100755
index 00a6681..cd2fd2f
--- a/app/modules/Cronks/lib/js/Icinga/Cronks/System/StatusOverall.js
+++ b/app/modules/Cronks/lib/js/Icinga/Cronks/System/StatusOverall.js
@@ -171,11 +171,13 @@ Ext.ns('Icinga.Cronks.System.StatusOverall');
             });
             
             this.dataStore.on('beforeload', function (store, records, options) {
-                this.refreshButton.setDisabled(true);
+                if(this.refreshButton.el.dom)
+                    this.refreshButton.setDisabled(true);
             }, this);
             
             this.dataStore.on('load', function (store, records, options) {
-                this.refreshButton.setDisabled(false);
+                if(this.refreshButton.el.dom)
+                    this.refreshButton.setDisabled(false);
             }, this);
             
             this.add({





More information about the icinga-checkins mailing list