[icinga-checkins] icinga.org: icinga-web/mhein/default: * IE7 bug

git at icinga.org git at icinga.org
Mon Jan 24 15:32:35 CET 2011


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

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Jan 24 15:32:23 2011 +0100

* IE7 bug

---

 .../templates/System/MonitorPerformanceSuccess.php |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/app/modules/Cronks/templates/System/MonitorPerformanceSuccess.php b/app/modules/Cronks/templates/System/MonitorPerformanceSuccess.php
index 3bb0d2b..c7b76fd 100644
--- a/app/modules/Cronks/templates/System/MonitorPerformanceSuccess.php
+++ b/app/modules/Cronks/templates/System/MonitorPerformanceSuccess.php
@@ -1,6 +1,5 @@
 <script type="text/javascript">
 Cronk.util.initEnvironment("<?php echo $rd->getParameter('parentid'); ?>", function() {
-	var CE = this;
 	
 	var ds = new Ext.data.JsonStore({
 		url: '<?php echo $ro->gen('cronks.monitorPerformance.json') ?>',
@@ -18,9 +17,7 @@ Cronk.util.initEnvironment("<?php echo $rd->getParameter('parentid'); ?>", funct
 
 	AppKit.getTr().start(monitorPerformanceRefreshTask);
 	
-	var monitorPerformancePanel = new Ext.DataView({
-		store: ds,
-		tpl: new Ext.XTemplate(
+	var mTpl = new Ext.XTemplate(
 			'<tpl for=".">',
 			
 			'<div class="float-container clearfix icinga-monitor-performance">',
@@ -66,10 +63,16 @@ Cronk.util.initEnvironment("<?php echo $rd->getParameter('parentid'); ?>", funct
 			'</div>',
 			
 			'</tpl>'
-		)
+		);
+	
+	this.add({
+		xtype: 'dataview',
+		store: ds,
+		tpl: mTpl,
+		itemSelector:'div.icinga-monitor-performance-container',
+        emptyText: 'Error'
 	});
 	
-	CE.add(monitorPerformancePanel);
-	CE.doLayout();	
+	this.doLayout();	
 });
 </script>





More information about the icinga-checkins mailing list