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

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


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

Added:
   trunk/mapbender/http/javascripts/mod_repaint.js
Modified:
   trunk/mapbender/http/javascripts/mod_repaint.php
Log:
repaint is no longer a .php file, but a .js

Added: trunk/mapbender/http/javascripts/mod_repaint.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_repaint.js	                        (rev 0)
+++ trunk/mapbender/http/javascripts/mod_repaint.js	2009-07-16 13:49:47 UTC (rev 4372)
@@ -0,0 +1,48 @@
+/**
+ * Package: repaint
+ *
+ * Description:
+ * Repaints a map. The maps must be specified comma-seperated under target.
+ * 
+ * Files:
+ *  - http/javascripts/mod_repaint.js
+ *
+ * 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('<gui_id>','repaint',2,1,
+ * > 'refresh a map object','Repaint',
+ * > 'img','../img/button_blink_red/repaint_off.png','',360,60,24,24,1,'','',
+ * > '','mod_repaint.js','','mapframe1','','');
+ *
+ * Help:
+ * http://www.mapbender.org/Repaint
+ *
+ * Maintainer:
+ * http://www.mapbender.org/User:Christoph_Baudson
+ * 
+ * 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].zoom(true, 0.999);
+}).mouseover(function () {
+	if (options.src) {
+		this.src = options.src.replace(/_off/, "_over");
+	}
+}).mouseout(function () {
+	if (options.src) {
+		this.src = options.src;
+	}
+});

Modified: trunk/mapbender/http/javascripts/mod_repaint.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_repaint.php	2009-07-16 13:49:12 UTC (rev 4371)
+++ trunk/mapbender/http/javascripts/mod_repaint.php	2009-07-16 13:49:47 UTC (rev 4372)
@@ -1,22 +1,34 @@
-<?php
-# $Id$
-# http://www.mapbender.org/index.php/mod_repaint.php
-# Copyright (C) 2002 CCGIS
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-?>
+/**
+ * Package: repaint
+ *
+ * Description:
+ * Repaints a map. The maps must be specified comma-seperated under target.
+ * 
+ * Files:
+ *  - http/javascripts/mod_repaint.js
+ *
+ * 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('<gui_id>','repaint',2,1,
+ * > 'refresh a map object','Repaint',
+ * > 'img','../img/button_blink_red/repaint_off.png','',360,60,24,24,1,'','',
+ * > '','mod_repaint.js','','mapframe1','','');
+ *
+ * Help:
+ * http://www.mapbender.org/Repaint
+ *
+ * Maintainer:
+ * http://www.mapbender.org/User:Christoph_Baudson
+ * 
+ * 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;



More information about the Mapbender_commits mailing list