[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * URL Cronk now works again

git at icinga.org git at icinga.org
Tue Nov 9 11:32:26 CET 2010


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

Author: root <root at localhost.localdomain>
Date:   Wed Oct  6 16:11:10 2010 +0200

* URL Cronk now works again

---

 app/modules/Cronks/lib/js/Tabhelper.js      |    8 +++++---
 app/modules/Cronks/lib/js/grid/GridPanel.js |    8 ++++----
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Tabhelper.js b/app/modules/Cronks/lib/js/Tabhelper.js
index 469e12f..abd9ed0 100755
--- a/app/modules/Cronks/lib/js/Tabhelper.js
+++ b/app/modules/Cronks/lib/js/Tabhelper.js
@@ -193,9 +193,11 @@ Cronk.util.CronkTabHelper = Ext.extend(Object, {
 			c.store.groupField = data.groupField;
 			
 			c.store.sort(data.groupField,data.groupDir);
-						
-			c.parentCmp.sort_array[0]['direction'] = data.groupDir;
-			c.parentCmp.sort_array[0]['field'] = data.groupField;
+			AppKit.log(c);
+			if(c.parentCmp.sort_array)  {
+				c.parentCmp.sort_array[0]['direction'] = data.groupDir;
+				c.parentCmp.sort_array[0]['field'] = data.groupField;
+			}
 			c.store.load();
 
 		});
diff --git a/app/modules/Cronks/lib/js/grid/GridPanel.js b/app/modules/Cronks/lib/js/grid/GridPanel.js
index 05fe3bf..f7b6b61 100755
--- a/app/modules/Cronks/lib/js/grid/GridPanel.js
+++ b/app/modules/Cronks/lib/js/grid/GridPanel.js
@@ -66,7 +66,7 @@ Cronk.grid.GridPanel = Ext.extend(Ext.grid.GridPanel, {
 									xtype:'textfield',
 									fieldLabel: _('Link'),
 									width:350,
-									value: this.parentCmp.meta.baseURL+"/customPortal/"+urlParams
+									value: this.initialConfig.meta.baseURL+"/customPortal/"+urlParams
 								}
 						
 							});
@@ -93,8 +93,8 @@ Cronk.grid.GridPanel = Ext.extend(Ext.grid.GridPanel, {
 	},
 	
 	extractGridParams: function() {
-		var grid = this.parentCmp.grid;
-		var store = grid.store;
+		AppKit.log(this);
+		var store = this.store;
 		var cronk = this.ownerCt.CronkPlugin.cmpConfig;
 		var urlParams = "cr_base=";
 
@@ -116,7 +116,7 @@ Cronk.grid.GridPanel = Ext.extend(Ext.grid.GridPanel, {
 				"groupField=instance/";
 		}
 		urlParams +=
-			"template="+this.parentCmp.params.template+"/"+
+			"template="+this.initialConfig.meta.params.template+"/"+
 			"crname="+cronk.crname+"/"+
 			"title="+cronk.title;
 





More information about the icinga-checkins mailing list