[Mapbender-commits] r8163 - in branches/2.7: http/javascripts
resources/db/pgsql/UTF-8/update
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Sep 23 02:32:39 EDT 2011
Author: verenadiewald
Date: 2011-09-22 23:32:39 -0700 (Thu, 22 Sep 2011)
New Revision: 8163
Modified:
branches/2.7/http/javascripts/mod_featureInfoTunnel.php
branches/2.7/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: branches/2.7/http/javascripts/mod_featureInfoTunnel.php
===================================================================
--- branches/2.7/http/javascripts/mod_featureInfoTunnel.php 2011-09-22 13:52:12 UTC (rev 8162)
+++ branches/2.7/http/javascripts/mod_featureInfoTunnel.php 2011-09-23 06:32:39 UTC (rev 8163)
@@ -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: branches/2.7/resources/db/pgsql/UTF-8/update/update_2.7.2_to_2.7.3_pgsql_UTF-8.sql
===================================================================
--- branches/2.7/resources/db/pgsql/UTF-8/update/update_2.7.2_to_2.7.3_pgsql_UTF-8.sql 2011-09-22 13:52:12 UTC (rev 8162)
+++ branches/2.7/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)
@@ -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';
More information about the Mapbender_commits
mailing list