[icinga-checkins] icinga.org: icinga-web/mhein/default: * added loading mask to status map

git at icinga.org git at icinga.org
Thu Oct 8 13:45:23 CEST 2009


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

Author: Christian Doebler <christian.doebler at netways.de>
Date:   Wed Oct  7 10:45:22 2009 +0200

* added loading mask to status map
* added mask to cronk selector and activated it

---

 app/config/cronks.xml                              |   20 +++++++++-----------
 .../Cronks/templates/System/StatusMapSuccess.php   |    8 ++++++++
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/app/config/cronks.xml b/app/config/cronks.xml
index e9b5197..653dcbe 100644
--- a/app/config/cronks.xml
+++ b/app/config/cronks.xml
@@ -99,6 +99,15 @@
 			</parameter>
 		</parameter>
 		
+		<parameter name="icingaStatusMap">
+			<parameter name="module">Cronks</parameter>
+			<parameter name="action">System.StatusMap</parameter>
+			<parameter name="hide">false</parameter>
+			<parameter name="description">Status Map</parameter>
+			<parameter name="name">Status Map</parameter>
+			<parameter name="parameter"></parameter>
+		</parameter>
+
 		<parameter name="portalView1Col">
 			<parameter name="module">Cronks</parameter>
 			<parameter name="action">System.PortalView</parameter>
@@ -183,15 +192,4 @@
 			</parameter>
 		</parameter>
 
-		<!--
-		<parameter name="icingaStatusMap">
-			<parameter name="module">Cronks</parameter>
-			<parameter name="action">System.StatusMap</parameter>
-			<parameter name="hide">false</parameter>
-			<parameter name="description">Status Map</parameter>
-			<parameter name="name">Status Map</parameter>
-			<parameter name="parameter"></parameter>
-		</parameter>
-		-->
-
 </setting>
\ No newline at end of file
diff --git a/app/modules/Cronks/templates/System/StatusMapSuccess.php b/app/modules/Cronks/templates/System/StatusMapSuccess.php
index 6041ea6..8037583 100644
--- a/app/modules/Cronks/templates/System/StatusMapSuccess.php
+++ b/app/modules/Cronks/templates/System/StatusMapSuccess.php
@@ -157,7 +157,13 @@
 			this.cmp.doLayout();
 		}
 
+		this.showMask = function () {
+			this.mask = new Ext.LoadMask(Ext.getBody());
+			this.mask.show();			
+		}
+
 		this.getMapData = function () {
+			this.showMask();
 			var ajax = Ext.Ajax.request({
 				url : this.config.url,
 				params : this.config.params,
@@ -174,6 +180,8 @@
 		this.getMapDataSuccess = function (response, o) {
 			this.jitJson = Ext.util.JSON.decode(response.responseText);
 			jitInit(this.jitJson);
+			this.mask.hide();
+			this.mask.disable();
 		}
 
 		this.getMapDataFail = function (response, o) {





More information about the icinga-checkins mailing list