[Mapbender-commits] r4754 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Sep 27 05:30:14 EDT 2009


Author: christoph
Date: 2009-09-27 05:30:14 -0400 (Sun, 27 Sep 2009)
New Revision: 4754

Modified:
   trunk/mapbender/http/javascripts/mod_resize_mapsize.js
Log:


Modified: trunk/mapbender/http/javascripts/mod_resize_mapsize.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_resize_mapsize.js	2009-09-27 09:27:10 UTC (rev 4753)
+++ trunk/mapbender/http/javascripts/mod_resize_mapsize.js	2009-09-27 09:30:14 UTC (rev 4754)
@@ -152,9 +152,25 @@
 
 if (resize_option == 'auto'){
 	eventInit.register(function() {
-		map = Mapbender.modules[options.target];
-		map_frame_left = map.left;
-		map_frame_top = map.top;
-		control(true);
+		init(true);
 	});
 }
+
+function init(skipMapRequest) {
+	map = Mapbender.modules[options.target];
+	map_frame_left = map.left;
+	map_frame_top = map.top;
+	control((skipMapRequest === true) ? true : false);
+}
+
+$(this).click(function () {
+	init(false);
+}).mouseover(function () {
+	if (options.src) {
+		this.src = options.src.replace(/_off/, "_over");
+	}
+}).mouseout(function () {
+	if (options.src) {
+		this.src = options.src;
+	}
+});



More information about the Mapbender_commits mailing list