[Mapbender-commits] r3302 - in trunk/mapbender: http/javascripts resources/db/update

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Dec 12 04:09:03 EST 2008


Author: christoph
Date: 2008-12-12 04:09:02 -0500 (Fri, 12 Dec 2008)
New Revision: 3302

Modified:
   trunk/mapbender/http/javascripts/mod_adminNavigation.js
   trunk/mapbender/resources/db/update/update_2.6.sql
Log:
http://trac.osgeo.org/mapbender/ticket/342

Modified: trunk/mapbender/http/javascripts/mod_adminNavigation.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_adminNavigation.js	2008-12-11 16:41:21 UTC (rev 3301)
+++ trunk/mapbender/http/javascripts/mod_adminNavigation.js	2008-12-12 09:09:02 UTC (rev 3302)
@@ -1,12 +1,8 @@
-function mod_adminNavigation_init(){
-	eventInit.trigger();
-	for (var i=0; i< document.getElementsByTagName("a").length; i++){
-		document.getElementsByTagName("a")[i].onclick = new Function("mod_adminNavigation(this)");
-	}
-}
-function mod_adminNavigation(obj){
-	for (var i=0; i< document.getElementsByTagName("a").length; i++){
-		document.getElementsByTagName("a")[i].style.color = "#808080";
-	}
-	obj.style.color = "#0000ff";
-}
\ No newline at end of file
+eventInit.register(function () {
+	$("a").click(function () {
+		$("a").each(function () {
+			this.style.color = "#808080";
+		});
+		this.style.color = "#0000ff";
+	});
+});
\ No newline at end of file

Modified: trunk/mapbender/resources/db/update/update_2.6.sql
===================================================================
--- trunk/mapbender/resources/db/update/update_2.6.sql	2008-12-11 16:41:21 UTC (rev 3301)
+++ trunk/mapbender/resources/db/update/update_2.6.sql	2008-12-12 09:09:02 UTC (rev 3302)
@@ -39,3 +39,9 @@
 	height: 18px;
 	width: 32px;
 }' WHERE fkey_e_id = 'digitize' AND var_name = 'text css';
+
+-- http://trac.osgeo.org/mapbender/ticket/336
+UPDATE gui_element SET e_js_file = 'wfs.php', e_target='mapframe1,overview' WHERE e_id = 'wfs'
+
+
+UPDATE gui_element SET e_attributes = 'onload=\'init()\'' WHERE e_id = 'body' AND fkey_gui_id IN ('admin1', 'admin2_de', 'admin2_en', 'admin_de_services', 'admin_en_services');
\ No newline at end of file



More information about the Mapbender_commits mailing list