[Mapbender-commits] r8164 - in trunk/mapbender: http/javascripts
resources/db/pgsql/UTF-8/update
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Sep 23 02:38:40 EDT 2011
Author: verenadiewald
Date: 2011-09-22 23:38:40 -0700 (Thu, 22 Sep 2011)
New Revision: 8164
Modified:
trunk/mapbender/http/javascripts/mod_featureInfoTunnel.php
trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.7.2_to_2.7.3_pgsql_UTF-8.sql
Log:
get featureInfoTunnel ready for working with toggleModule
Modified: trunk/mapbender/http/javascripts/mod_featureInfoTunnel.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_featureInfoTunnel.php 2011-09-23 06:32:39 UTC (rev 8163)
+++ trunk/mapbender/http/javascripts/mod_featureInfoTunnel.php 2011-09-23 06:38:40 UTC (rev 8164)
@@ -42,19 +42,22 @@
var mod_featureInfoTunnel_img_off = new Image(); mod_featureInfoTunnel_img_off.src ="<?php echo $e_src; ?>";
var mod_featureInfoTunnel_img_over = new Image(); mod_featureInfoTunnel_img_over.src = "<?php echo preg_replace("/_off/","_over",$e_src); ?>";
-function init_featureInfoTunnel(ind){
- mb_button[ind] = document.getElementById(mod_featureInfoTunnel_elName);
- mb_button[ind].img_over = mod_featureInfoTunnel_img_over.src;
- mb_button[ind].img_on = mod_featureInfoTunnel_img_on.src;
- mb_button[ind].img_off = mod_featureInfoTunnel_img_off.src;
- mb_button[ind].status = 0;
- mb_button[ind].elName = mod_featureInfoTunnel_elName;
- mb_button[ind].fName = mod_featureInfoTunnel_frameName;
- mb_button[ind].go = new Function ("mod_featureInfoTunnel_click()");
- mb_button[ind].stop = new Function ("mod_featureInfoTunnel_disable()");
-
- mod_featureInfoTunnel_map = getMapObjByName(mod_featureInfoTunnel_target);
-}
+eventInit.register(function () {
+ mb_regButton(function init_featureInfoTunnel(ind){
+ mb_button[ind] = document.getElementById(mod_featureInfoTunnel_elName);
+ mb_button[ind].img_over = mod_featureInfoTunnel_img_over.src;
+ mb_button[ind].img_on = mod_featureInfoTunnel_img_on.src;
+ mb_button[ind].img_off = mod_featureInfoTunnel_img_off.src;
+ mb_button[ind].status = 0;
+ mb_button[ind].elName = mod_featureInfoTunnel_elName;
+ mb_button[ind].fName = mod_featureInfoTunnel_frameName;
+ mb_button[ind].go = new Function ("mod_featureInfoTunnel_click()");
+ mb_button[ind].stop = new Function ("mod_featureInfoTunnel_disable()");
+
+ mod_featureInfoTunnel_map = getMapObjByName(mod_featureInfoTunnel_target);
+ });
+});
+
function mod_featureInfoTunnel_click(){
var domNode = mod_featureInfoTunnel_map.getDomElement();
if (domNode) {
Modified: trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.7.2_to_2.7.3_pgsql_UTF-8.sql
===================================================================
--- trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.7.2_to_2.7.3_pgsql_UTF-8.sql 2011-09-23 06:32:39 UTC (rev 8163)
+++ trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.7.2_to_2.7.3_pgsql_UTF-8.sql 2011-09-23 06:38:40 UTC (rev 8164)
@@ -95,4 +95,6 @@
gui_element.e_id = 'measure_widget' AND
gui_element.fkey_gui_id
NOT IN (SELECT fkey_gui_id FROM gui_element_vars WHERE fkey_e_id = 'measure_widget' AND var_name = 'pointStrokeWidthDefault');
-
\ No newline at end of file
+
+--get featureInfoTunnel ready for working with toggleModule
+UPDATE gui_element SET e_attributes = NULL WHERE e_id = 'featureInfoTunnel';
\ No newline at end of file
More information about the Mapbender_commits
mailing list