[icinga-checkins] icinga.org: icinga-web/master: Fixed LoadingBar causing inifinite errors on premature destroy

git at icinga.org git at icinga.org
Wed Aug 29 11:05:44 CEST 2012


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

Author: Jannis Moßhammer <jannis.mosshammer at netways.de>
Date:   Sat Aug 25 17:35:30 2012 +0200

Fixed LoadingBar causing inifinite errors on premature destroy

---

 .../lib/js/Icinga/Cronks/System/CronkPortal.js     |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Icinga/Cronks/System/CronkPortal.js b/app/modules/Cronks/lib/js/Icinga/Cronks/System/CronkPortal.js
old mode 100644
new mode 100755
index cb9dd24..6e052ff
--- a/app/modules/Cronks/lib/js/Icinga/Cronks/System/CronkPortal.js
+++ b/app/modules/Cronks/lib/js/Icinga/Cronks/System/CronkPortal.js
@@ -96,7 +96,8 @@ Ext.ns('Icinga.Cronks.System');
                     remove: true,
                     useDisplay: true,
                     callback: function() {
-                        this.loadingProgress.destroy();
+                        if(this.loadingProgress)
+                            this.loadingProgress.destroy();
                         this.loadingProgress = null; // Unset only
                     },
                     scope: this
@@ -109,7 +110,7 @@ Ext.ns('Icinga.Cronks.System');
          * @param {Number} percent
          */
         updateLoadingText: function(percent) {
-            if (Ext.isDefined(this.loadingProgress)) {
+            if (this.loadingProgress) {
                 if (percent > 100) {
                     percent = 99.99;
                 }





More information about the icinga-checkins mailing list