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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jul 16 09:49:12 EDT 2009


Author: christoph
Date: 2009-07-16 09:49:12 -0400 (Thu, 16 Jul 2009)
New Revision: 4371

Added:
   trunk/mapbender/http/javascripts/mod_zoomFull.js
Removed:
   trunk/mapbender/http/javascripts/mod_zoomFull.php
Log:
zoomFull is no longer a .php file, but a .js

Added: trunk/mapbender/http/javascripts/mod_zoomFull.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_zoomFull.js	                        (rev 0)
+++ trunk/mapbender/http/javascripts/mod_zoomFull.js	2009-07-16 13:49:12 UTC (rev 4371)
@@ -0,0 +1,48 @@
+/**
+ * Package: zoomFull
+ *
+ * Description:
+ * Click button to zoom to the full extent of the BoundingBox.
+ *
+ * Files:
+ *  - http/javascripts/mod_zoomFull.php
+ *
+ * SQL:
+ * > INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment,
+ * > e_title, e_element, e_src, e_attributes, e_left, e_top, e_width,
+ * > e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file,
+ * > e_mb_mod, e_target, e_requires, e_url) VALUES('gui1','zoomFull',2,1,
+ * > 'zoom to full extent button','Display complete map','img',
+ * > '../img/button_blink_red/zoomFull_off.png','',335,60,24,24,2,'','','',
+ * > 'mod_zoomFull.php','','mapframe1','',
+ * >'http://www.mapbender.org/index.php/ZoomFull');
+ *
+ * Help:
+ * http://www.mapbender.org/ZoomFull
+ *
+ * Maintainer:
+ * http://www.mapbender.org/User:Verena_Diewald
+ *
+ * License:
+ * Copyright (c) 2009, Open Source Geospatial Foundation
+ * This program is dual licensed under the GNU General Public License 
+ * and Simplified BSD license.  
+ * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
+ */
+$(this).click(function () {
+	if (!options.target) {
+		return;
+	}
+	if (!Mapbender.modules[options.target]) {
+		return;
+	}
+	Mapbender.modules[options.target].zoomFull();
+}).mouseover(function () {
+	if (options.src) {
+		this.src = options.src.replace(/_off/, "_over");
+	}
+}).mouseout(function () {
+	if (options.src) {
+		this.src = options.src;
+	}
+});
\ No newline at end of file

Deleted: trunk/mapbender/http/javascripts/mod_zoomFull.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_zoomFull.php	2009-07-16 13:48:37 UTC (rev 4370)
+++ trunk/mapbender/http/javascripts/mod_zoomFull.php	2009-07-16 13:49:12 UTC (rev 4371)
@@ -1,49 +0,0 @@
-<?php
-#$Id$
-#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_zoomFull.php,v 1.8 2005/09/13 18:16:42 bjoern_heuser Exp $
-?>
-/**
- * Package: zoomFull
- *
- * Description:
- * Click button to zoom to the full extent of the BoundingBox.
- *
- * Files:
- *  - http/javascripts/mod_zoomFull.php
- *
- * SQL:
- * > INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment,
- * > e_title, e_element, e_src, e_attributes, e_left, e_top, e_width,
- * > e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file,
- * > e_mb_mod, e_target, e_requires, e_url) VALUES('gui1','zoomFull',2,1,
- * > 'zoom to full extent button','Display complete map','img',
- * > '../img/button_blink_red/zoomFull_off.png','',335,60,24,24,2,'','','',
- * > 'mod_zoomFull.php','','mapframe1','',
- * >'http://www.mapbender.org/index.php/ZoomFull');
- *
- * Help:
- * http://www.mapbender.org/ZoomFull
- *
- * Maintainer:
- * http://www.mapbender.org/User:Verena_Diewald
- *
- */
-
-
-$(this).click(function () {
-	if (!options.target) {
-		return;
-	}
-	if (!Mapbender.modules[options.target]) {
-		return;
-	}
-	Mapbender.modules[options.target].zoomFull();
-}).mouseover(function () {
-	if (options.src) {
-		this.src = options.src.replace(/_off/, "_over");
-	}
-}).mouseout(function () {
-	if (options.src) {
-		this.src = options.src;
-	}
-});
\ No newline at end of file



More information about the Mapbender_commits mailing list