[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Added changed PortalViewSuccess

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


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

Author: jmosshammer <jannis.mosshammer at netways.de>
Date:   Fri Feb 11 11:54:15 2011 +0100

* Added changed PortalViewSuccess

---

 .../Cronks/templates/System/PortalViewSuccess.php  |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/app/modules/Cronks/templates/System/PortalViewSuccess.php b/app/modules/Cronks/templates/System/PortalViewSuccess.php
index 658e0fa..ab98e84 100755
--- a/app/modules/Cronks/templates/System/PortalViewSuccess.php
+++ b/app/modules/Cronks/templates/System/PortalViewSuccess.php
@@ -97,16 +97,16 @@ Cronk.util.initEnvironment("<?php echo $parentid = $rd->getParameter('parentid')
 
 							notifyDrop: function(dd, e, data) {
 								var params = {
+									module: 'Cronks',
+									action: 'System.PortalView',
 									'p[parentid]': id
 								};
-								
 								if (data.dragData.parameter) {
 									for (var k in data.dragData.parameter) {
 										params['p[' + k + ']'] = data.dragData.parameter[k];
 									}
 								}
-								
-								var portlet  = Cronk.factory({
+									var portlet  = Cronk.factory({
 									id: Ext.id(),
 
 									params: params,
@@ -302,11 +302,15 @@ Cronk.util.initEnvironment("<?php echo $parentid = $rd->getParameter('parentid')
 				}
 			});
 		}
-
+		
 		var portal = new Ext.ux.Portal(portal_config);
-	
+
+		if(this.params.customState) {	
+			portal.applyState(Ext.decode(this.params.customState));
+
+		}
 		CE.insert(0, portal);
 		CE.doLayout();
 
 	});	
-</script>
\ No newline at end of file
+</script>





More information about the icinga-checkins mailing list