[Mapbender-commits] r8669 - in trunk/mapbender: http/html http/plugins lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jul 15 02:42:01 PDT 2013


Author: verenadiewald
Date: 2013-07-15 02:42:00 -0700 (Mon, 15 Jul 2013)
New Revision: 8669

Modified:
   trunk/mapbender/http/html/mod_treefolderPlain.php
   trunk/mapbender/http/plugins/mod_WMSpreferencesDiv.php
   trunk/mapbender/lib/core.js
Log:
update WMS preferences div if tree is reloaded (after loading wmc, adding wms...)

Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php	2013-07-10 07:23:13 UTC (rev 8668)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php	2013-07-15 09:42:00 UTC (rev 8669)
@@ -409,6 +409,7 @@
 		initWmsCheckboxen();
 		updateScale();
 	}
+	Mapbender.events.treeReloaded.trigger();
 }
 
 function imgerror(t){

Modified: trunk/mapbender/http/plugins/mod_WMSpreferencesDiv.php
===================================================================
--- trunk/mapbender/http/plugins/mod_WMSpreferencesDiv.php	2013-07-10 07:23:13 UTC (rev 8668)
+++ trunk/mapbender/http/plugins/mod_WMSpreferencesDiv.php	2013-07-15 09:42:00 UTC (rev 8669)
@@ -395,6 +395,13 @@
 	Mapbender.modules[options.id] = $.extend(new WMS_preferencesDiv(),Mapbender.modules[options.id]);	
 });
 
+Mapbender.events.treeReloaded.register(function() {
+	$("#wms-preferences-form").remove();
+	Mapbender.modules[options.id].initForm();
+});
 
 
 
+
+
+

Modified: trunk/mapbender/lib/core.js
===================================================================
--- trunk/mapbender/lib/core.js	2013-07-10 07:23:13 UTC (rev 8668)
+++ trunk/mapbender/lib/core.js	2013-07-15 09:42:00 UTC (rev 8669)
@@ -53,7 +53,12 @@
  */
 Mapbender.events.afterLoadWms = new Mapbender.Event();
 
+/**
+ * Triggered after treeGDE has been reloaded
+ */
+Mapbender.events.treeReloaded = new Mapbender.Event();
 
+
 Mapbender.events.hideSplashScreen.register(function() {
 	// remove the splash screen, show the application
 	$("#loading_mapbender").remove();



More information about the Mapbender_commits mailing list