[icinga-checkins] icinga.org: icinga-web/mhein/default: * Adding xtype to Cronk. factory to avoid empty cronks after reload

git at icinga.org git at icinga.org
Mon Jul 26 14:40:17 CEST 2010


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

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Jul 26 14:39:37 2010 +0200

* Adding xtype to Cronk.factory to avoid empty cronks after reload

---

 app/modules/Cronks/lib/js/Cronk.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronk.js b/app/modules/Cronks/lib/js/Cronk.js
index 932bb98..2ea198a 100755
--- a/app/modules/Cronks/lib/js/Cronk.js
+++ b/app/modules/Cronks/lib/js/Cronk.js
@@ -35,6 +35,10 @@ Cronk = (function(){
 			if (Ext.isDefined(config['xtype']) && config.xtype !== 'cronk') {
 				config.ptype = 'cronk-plugin'
 			}
+
+			if (!Ext.isDefined(config['xtype'])) {
+				config['xtype'] = 'cronk';
+			}
 			
 			return Ext.create(config, 'cronk');
 		}





More information about the icinga-checkins mailing list