[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Added module and action params for js cronk processors (fixes #1205)

git at icinga.org git at icinga.org
Sun Mar 20 11:26:09 CET 2011


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

Author: Marius Hein <marius.hein at netways.de>
Date:   Fri Feb 11 10:31:21 2011 +0100

* Added module and action params for js cronk processors (fixes #1205)

---

 .../templates/System/StatusOverallSuccess.php      |    4 +++-
 .../System/ViewProc/js/IcingaColumnRenderer.js     |    6 +++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/templates/System/StatusOverallSuccess.php b/app/modules/Cronks/templates/System/StatusOverallSuccess.php
index 6fba05f..a5e43e2 100644
--- a/app/modules/Cronks/templates/System/StatusOverallSuccess.php
+++ b/app/modules/Cronks/templates/System/StatusOverallSuccess.php
@@ -52,7 +52,9 @@ Cronk.util.initEnvironment("<?php echo $rd->getParameter('parentid'); ?>", funct
 					var d = dview.getStore().getAt(index).data;
 
 					var params = {
-						template: 'icinga-' + d.type + '-template'
+						template: 'icinga-' + d.type + '-template',
+						module: 'Cronks',
+						action: 'System.ViewProc'
 					};
 
 					var filter = {};
diff --git a/app/modules/Cronks/templates/System/ViewProc/js/IcingaColumnRenderer.js b/app/modules/Cronks/templates/System/ViewProc/js/IcingaColumnRenderer.js
index 17311b7..ff71290 100755
--- a/app/modules/Cronks/templates/System/ViewProc/js/IcingaColumnRenderer.js
+++ b/app/modules/Cronks/templates/System/ViewProc/js/IcingaColumnRenderer.js
@@ -17,7 +17,11 @@ Cronk.grid.IcingaColumnRenderer = {
 					title: (cfg.titlePrefix || '') + " " + record.data[ cfg.labelField ],
 					crname: 'gridProc',
 					closable: true,
-					params: {template: cfg.targetTemplate}
+					params: {
+						template: cfg.targetTemplate,
+						module: 'Cronks',
+						action: 'System.ViewProc'
+					}
 				};
 				
 				var filter = {};





More information about the icinga-checkins mailing list