summaryrefslogtreecommitdiff
path: root/modules_v3/googlemap
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-11 00:56:58 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-11 00:56:58 +0000
commit0f21e1e20204a4b11ee738e9f0ecd697f4ba0149 (patch)
treecad91d835750205009047a4f9e963893b20f9add /modules_v3/googlemap
parent1f695b56043116fbdb4afec8e48a68d83ffab5ce (diff)
downloadwebtrees-0f21e1e20204a4b11ee738e9f0ecd697f4ba0149.tar.gz
webtrees-0f21e1e20204a4b11ee738e9f0ecd697f4ba0149.tar.bz2
webtrees-0f21e1e20204a4b11ee738e9f0ecd697f4ba0149.zip
Use consistent style for <a href="#" onclick="foo();"> the various combinations of javascript:XXX are non-standard, and cause problems with some browsers.
Diffstat (limited to 'modules_v3/googlemap')
-rw-r--r--modules_v3/googlemap/admin_placecheck.php4
-rw-r--r--modules_v3/googlemap/admin_places.php6
-rw-r--r--modules_v3/googlemap/flags.php10
-rw-r--r--modules_v3/googlemap/googlemap.php2
-rw-r--r--modules_v3/googlemap/placehierarchy.php2
-rw-r--r--modules_v3/googlemap/places_edit.php18
-rw-r--r--modules_v3/googlemap/wt_v3_googlemap.js.php10
-rw-r--r--modules_v3/googlemap/wt_v3_pedigree_map.js.php12
-rw-r--r--modules_v3/googlemap/wt_v3_places_edit.js.php4
-rw-r--r--modules_v3/googlemap/wt_v3_street_view.php48
10 files changed, 55 insertions, 61 deletions
diff --git a/modules_v3/googlemap/admin_placecheck.php b/modules_v3/googlemap/admin_placecheck.php
index 3a9b7ebb41..b14c5fed30 100644
--- a/modules_v3/googlemap/admin_placecheck.php
+++ b/modules_v3/googlemap/admin_placecheck.php
@@ -278,8 +278,8 @@ case 'go':
$id=0;
$level=0;
$matched[$x]=0;// used to exclude places where the gedcom place is matched at all levels
- $mapstr_edit="<a href=\"javascript:;\" onclick=\"edit_place_location('";
- $mapstr_add="<a href=\"javascript:;\" onclick=\"add_place_location('";
+ $mapstr_edit="<a href=\"#\" onclick=\"edit_place_location('";
+ $mapstr_add="<a href=\"#\" onclick=\"add_place_location('";
$mapstr3="";
$mapstr4="";
$mapstr5="')\" title='";
diff --git a/modules_v3/googlemap/admin_places.php b/modules_v3/googlemap/admin_places.php
index 0240055632..f8788d58b6 100644
--- a/modules_v3/googlemap/admin_places.php
+++ b/modules_v3/googlemap/admin_places.php
@@ -613,13 +613,13 @@ foreach ($placelist as $place) {
echo '<img src="', WT_STATIC_URL, WT_MODULES_DIR, 'googlemap/', $place['icon'], '" width="25" height="15">';
}
echo '</td>';
- echo '<td class="narrow"><a href="javascript:;" onclick="edit_place_location(', $place['place_id'], ');return false;"><img src="', $WT_IMAGES['edit'], '" border="0" alt="', WT_I18N::translate("Edit"), '" /></a></td>';
+ echo '<td class="narrow"><a href="#" onclick="edit_place_location(', $place['place_id'], ');return false;"><img src="', $WT_IMAGES['edit'], '" border="0" alt="', WT_I18N::translate("Edit"), '" /></a></td>';
$noRows=
WT_DB::prepare("SELECT COUNT(pl_id) FROM `##placelocation` WHERE pl_parent_id=?")
->execute(array($place['place_id']))
->fetchOne();
if ($noRows==0) { ?>
- <td><a href="javascript:;" onclick="delete_place(<?php echo $place['place_id'], ');return false;">'; ?><img src="<?php echo $WT_IMAGES['remove'];?>" border="0" alt="<?php echo WT_I18N::translate('Remove'); ?>" /></a></td>
+ <td><a href="#" onclick="delete_place(<?php echo $place['place_id'], ');return false;">'; ?><img src="<?php echo $WT_IMAGES['remove'];?>" border="0" alt="<?php echo WT_I18N::translate('Remove'); ?>" /></a></td>
<?php } else { ?>
<td><img src="<?php echo $WT_IMAGES['remove_grey'];?>" border="0" alt="" /> </td>
<?php } ?>
@@ -631,7 +631,7 @@ foreach ($placelist as $place) {
</div>
<table id="gm_manage">
<tr>
- <td colspan="3"><a href="javascript:;" onclick="add_place_location(<?php echo $parent; ?>);return false;"><?php echo WT_I18N::translate('Add place'); ?></a><?php echo help_link('PL_ADD_LOCATION','googlemap'); ?></td>
+ <td colspan="3"><a href="#" onclick="add_place_location(<?php echo $parent; ?>);return false;"><?php echo WT_I18N::translate('Add place'); ?></a><?php echo help_link('PL_ADD_LOCATION','googlemap'); ?></td>
</tr>
<tr>
<td><a href="module.php?mod=googlemap&mod_action=admin_places&action=ImportGedcom&mode=curr"><?php echo WT_I18N::translate('Import from current GEDCOM'); ?></a><?php echo help_link('PL_IMPORT_GEDCOM','googlemap'); ?></td>
diff --git a/modules_v3/googlemap/flags.php b/modules_v3/googlemap/flags.php
index 9d03d1262f..f639a3e096 100644
--- a/modules_v3/googlemap/flags.php
+++ b/modules_v3/googlemap/flags.php
@@ -86,13 +86,13 @@ if ($action == 'ChangeFlag') {
function edit_close() {
<?php if ($_POST['selcountry'] == 'Countries') { ?>
window.opener.document.editplaces.icon.value = 'places/flags/<?php echo $flags[$_POST['FLAGS']]; ?>.png';
- window.opener.document.getElementById('flagsDiv').innerHTML = "<img src=\"<?php echo WT_STATIC_URL, WT_MODULES_DIR; ?>googlemap/places/flags/<?php echo $country[$_POST['FLAGS']]; ?>.png\">&nbsp;&nbsp;<a href=\"javascript:;\" onclick=\"change_icon();return false;\"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;<a href=\"javascript:;\" onclick=\"remove_icon();return false;\"><?php echo WT_I18N::translate('Remove flag'); ?></a>";
+ window.opener.document.getElementById('flagsDiv').innerHTML = "<img src=\"<?php echo WT_STATIC_URL, WT_MODULES_DIR; ?>googlemap/places/flags/<?php echo $country[$_POST['FLAGS']]; ?>.png\">&nbsp;&nbsp;<a href=\"#\" onclick=\"change_icon();return false;\"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;<a href=\"#\" onclick=\"remove_icon();return false;\"><?php echo WT_I18N::translate('Remove flag'); ?></a>";
<?php } else if ($_POST["selstate"] != "States"){ ?>
window.opener.document.editplaces.icon.value = 'places/<?php echo $countrySelected, '/flags/', $_POST['selstate'], '/', $flags_s[$_POST['FLAGS']]; ?>.png';
- window.opener.document.getElementById('flagsDiv').innerHTML = "<img src=\"<?php echo WT_STATIC_URL, WT_MODULES_DIR; ?>googlemap/places/<?php echo $countrySelected, "/flags/", $_POST["selstate"], "/", $flags_s[$_POST['FLAGS']]; ?>.png\">&nbsp;&nbsp;<a href=\"javascript:;\" onclick=\"change_icon();return false;\"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;<a href=\"javascript:;\" onclick=\"remove_icon();return false;\"><?php echo WT_I18N::translate('Remove flag'); ?></a>";
+ window.opener.document.getElementById('flagsDiv').innerHTML = "<img src=\"<?php echo WT_STATIC_URL, WT_MODULES_DIR; ?>googlemap/places/<?php echo $countrySelected, "/flags/", $_POST["selstate"], "/", $flags_s[$_POST['FLAGS']]; ?>.png\">&nbsp;&nbsp;<a href=\"#\" onclick=\"change_icon();return false;\"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;<a href=\"#\" onclick=\"remove_icon();return false;\"><?php echo WT_I18N::translate('Remove flag'); ?></a>";
<?php } else { ?>
window.opener.document.editplaces.icon.value = "places/<?php echo $countrySelected, "/flags/", $flags[$_POST['FLAGS']]; ?>.png";
- window.opener.document.getElementById('flagsDiv').innerHTML = "<img src=\"<?php echo WT_STATIC_URL, WT_MODULES_DIR; ?>googlemap/places/<?php echo $countrySelected, "/flags/", $flags[$_POST['FLAGS']]; ?>.png\">&nbsp;&nbsp;<a href=\"javascript:;\" onclick=\"change_icon();return false;\"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;<a href=\"javascript:;\" onclick=\"remove_icon();return false;\"><?php echo WT_I18N::translate('Remove flag'); ?></a>";
+ window.opener.document.getElementById('flagsDiv').innerHTML = "<img src=\"<?php echo WT_STATIC_URL, WT_MODULES_DIR; ?>googlemap/places/<?php echo $countrySelected, "/flags/", $flags[$_POST['FLAGS']]; ?>.png\">&nbsp;&nbsp;<a href=\"#\" onclick=\"change_icon();return false;\"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;<a href=\"#\" onclick=\"remove_icon();return false;\"><?php echo WT_I18N::translate('Remove flag'); ?></a>";
<?php } ?>
window.close();
}
@@ -103,7 +103,7 @@ if ($action == 'ChangeFlag') {
if (!WT_DEBUG) {
echo "\n<script type=\"text/javascript\">\n<!--\nedit_close();\n//-->\n</script>";
}
- echo "<div class=\"center\"><a href=\"javascript:;\" onclick=\"edit_close();\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
+ echo "<div class=\"center\"><a href=\"#\" onclick=\"edit_close();\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
exit;
}
else {
@@ -244,4 +244,4 @@ else {
<input id="savebutton" name="save2" type="submit" disabled="true" value="<?php echo WT_I18N::translate('Save'); ?>" /><br />
</form>
<?php
-echo '<div class="center"><a href="javascript:;" onclick="edit_close();">', WT_I18N::translate('Close Window'), '</a></div><br />';
+echo '<div class="center"><a href="#" onclick="edit_close();">', WT_I18N::translate('Close Window'), '</a></div><br />';
diff --git a/modules_v3/googlemap/googlemap.php b/modules_v3/googlemap/googlemap.php
index af774abf1c..2669af5ffd 100644
--- a/modules_v3/googlemap/googlemap.php
+++ b/modules_v3/googlemap/googlemap.php
@@ -571,7 +571,7 @@ function build_indiv_map($indifacts, $famids) {
foreach($markers as $marker) {
echo '<tr>';
echo '<td class="facts_label">';
- echo '<a href="javascript:myclick(', $z, ', ', $marker['index'], ', ', $marker['tabindex'], ')">', $marker['fact'], '</a></td>';
+ echo '<a href="#" onclick="myclick(', $z, ', ', $marker['index'], ', ', $marker['tabindex'], ')">', $marker['fact'], '</a></td>';
$z++;
echo '<td class="', $marker['class'], '" style="white-space: normal">';
if (!empty($marker['info'])) {
diff --git a/modules_v3/googlemap/placehierarchy.php b/modules_v3/googlemap/placehierarchy.php
index 46b2e1204b..cf74071fb0 100644
--- a/modules_v3/googlemap/placehierarchy.php
+++ b/modules_v3/googlemap/placehierarchy.php
@@ -261,7 +261,7 @@ function create_map($placelevels) {
echo "<tr><td>\n";
echo "<form style=\"text-align:left; margin-left:5px; font:11px verdana; color:blue;\" method=\"post\" action=\"\">";
echo $list_latlon;
- echo "<input type=\"submit\" name=\"Submit\" onClick=\"update_sv_params($placeid);\" value=\"", WT_I18N::translate('Save'), "\">";
+ echo "<input type=\"submit\" name=\"Submit\" onclick=\"update_sv_params($placeid);\" value=\"", WT_I18N::translate('Save'), "\">";
echo "</form>";
echo "</td></tr>\n";
echo "</table>\n";
diff --git a/modules_v3/googlemap/places_edit.php b/modules_v3/googlemap/places_edit.php
index 1f0d509648..6be738bcfe 100644
--- a/modules_v3/googlemap/places_edit.php
+++ b/modules_v3/googlemap/places_edit.php
@@ -102,7 +102,7 @@ if ($action=='addrecord' && WT_USER_IS_ADMIN) {
if (!WT_DEBUG) {
echo "\n<script type=\"text/javascript\">\n<!--\nedit_close('');\n//-->\n</script>";
}
- echo "<div class=\"center\"><a href=\"javascript:;\" onclick=\"edit_close('');return false;\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
+ echo "<div class=\"center\"><a href=\"#\" onclick=\"edit_close('');return false;\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
exit;
}
@@ -120,7 +120,7 @@ if ($action=='updaterecord' && WT_USER_IS_ADMIN) {
if (!WT_DEBUG) {
echo "\n<script type=\"text/javascript\">\n<!--\nedit_close('');\n//-->\n</script>";
}
- echo "<div class=\"center\"><a href=\"javascript:;\" onclick=\"edit_close('');return false;\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
+ echo "<div class=\"center\"><a href=\"#\" onclick=\"edit_close('');return false;\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
exit;
}
@@ -140,7 +140,7 @@ if ($action=='update_sv_params' && WT_USER_IS_ADMIN) {
if (!WT_DEBUG) {
echo "\n<script type=\"text/javascript\">\n<!--\nedit_close();\n//-->\n</script>";
}
- echo "<div class=\"center\"><a href=\"javascript:;\" onclick=\"edit_close();return false;\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
+ echo "<div class=\"center\"><a href=\"#\" onclick=\"edit_close();return false;\">", WT_I18N::translate('Close Window'), "</a></div><br />\n";
exit;
}
@@ -276,8 +276,8 @@ $api="v3";
<td class="optionbox"><input type="text" id="new_pl_name" name="NEW_PLACE_NAME" value="<?php echo htmlspecialchars($place_name); ?>" size="25" class="address_input" />
<div id="INDI_PLAC_pop" style="display: inline;">
<?php print_specialchar_link("NEW_PLACE_NAME", false); ?></div>
- <label for="new_pl_name"><a href="javascript:;" onclick="showLocation_level(document.getElementById('new_pl_name').value); return false">&nbsp;<?php echo WT_I18N::translate('Search on this level'); ?></a></label>&nbsp;&nbsp;|
- <label for="new_pl_name"><a href="javascript:;" onclick="showLocation_all(document.getElementById('new_pl_name').value); return false">&nbsp;<?php echo WT_I18N::translate('Search all'); ?></a></label>
+ <label for="new_pl_name"><a href="#" onclick="showLocation_level(document.getElementById('new_pl_name').value); return false">&nbsp;<?php echo WT_I18N::translate('Search on this level'); ?></a></label>&nbsp;&nbsp;|
+ <label for="new_pl_name"><a href="#" onclick="showLocation_all(document.getElementById('new_pl_name').value); return false">&nbsp;<?php echo WT_I18N::translate('Search all'); ?></a></label>
</td>
</tr>
<tr>
@@ -347,12 +347,12 @@ $api="v3";
<div id="flagsDiv">
<?php
if (($place_icon == NULL) || ($place_icon == "")) { ?>
- <a href="javascript:;" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>
+ <a href="#" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>
<?php }
else { ?>
<img alt="<?php echo /* I18N: The emblem of a country or region */ WT_I18N::translate('Flag'); ?>" src="<?php echo WT_STATIC_URL, WT_MODULES_DIR, 'googlemap/', $place_icon; ?>"/>&nbsp;&nbsp;
- <a href="javascript:;" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;
- <a href="javascript:;" onclick="remove_icon();return false;"><?php echo WT_I18N::translate('Remove flag'); ?></a>
+ <a href="#" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;
+ <a href="#" onclick="remove_icon();return false;"><?php echo WT_I18N::translate('Remove flag'); ?></a>
<?php } ?>
</div></td>
</tr>
@@ -360,4 +360,4 @@ $api="v3";
<input name="save2" type="submit" value="<?php echo WT_I18N::translate('Save'); ?>" /><br />
</form>
<?php
-echo "<center><a href=\"javascript:;\" onclick=\"edit_close('')\">", WT_I18N::translate('Close Window'), "</a><br /></center>\n";
+echo "<center><a href=\"#\" onclick=\"edit_close('')\">", WT_I18N::translate('Close Window'), "</a><br /></center>\n";
diff --git a/modules_v3/googlemap/wt_v3_googlemap.js.php b/modules_v3/googlemap/wt_v3_googlemap.js.php
index 59345b5bb0..b61cef4510 100644
--- a/modules_v3/googlemap/wt_v3_googlemap.js.php
+++ b/modules_v3/googlemap/wt_v3_googlemap.js.php
@@ -350,15 +350,15 @@ $STREETVIEW=get_module_setting('googlemap', 'GM_USE_STREETVIEW');
if (gmarkers[i].getVisible()) {
// if (x==gmarkers[i].myindex) {
if (x==i ) {
- html += '<a style="text-decoration:none; color:black; background:white; " href="javascript:myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
+ html += '<a style="text-decoration:none; color:black; background:white; " href="#" onclick="myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
} else if (gmarkers[i].mycategory=='theatre') {
- html += '<a style="text-decoration:none; color:red;" href="javascript:myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
+ html += '<a style="text-decoration:none; color:red;" href="#" onclick="myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
} else if (gmarkers[i].mycategory=='golf') {
- html += '<a style="text-decoration:none; color:green;" href="javascript:myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
+ html += '<a style="text-decoration:none; color:green;" href="#" onclick="myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
} else if (gmarkers[i].mycategory=='info') {
- html += '<a style="text-decoration:none; color:yellow;" href="javascript:myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
+ html += '<a style="text-decoration:none; color:yellow;" href="#" onclick="myclick('+i+', '+gmarkers[i].mytab+')">' + gmarkers[i].myevent + '<\/a><br>';
} else {
- html += '<a style="text-decoration:none; color:black;" href="javascript:myclick('+i+', '+gmarkers[i].mytab+')">'+ gmarkers[i].myevent + '<\/a><br>';
+ html += '<a style="text-decoration:none; color:black;" href="#" onclick="myclick('+i+', '+gmarkers[i].mytab+')">'+ gmarkers[i].myevent + '<\/a><br>';
}
}
}
diff --git a/modules_v3/googlemap/wt_v3_pedigree_map.js.php b/modules_v3/googlemap/wt_v3_pedigree_map.js.php
index d8f229c6b7..b8c2ca699e 100644
--- a/modules_v3/googlemap/wt_v3_pedigree_map.js.php
+++ b/modules_v3/googlemap/wt_v3_pedigree_map.js.php
@@ -400,7 +400,7 @@ function createMarker(point, name, html, mhtml, icontype) {
// save the info we need to use later for the side_bar
gmarkers[i] = marker;
// add a line to the side_bar html
- side_bar_html += '<br /><div id="'+linkid+'"><a href="javascript:myclick(' + i + ')">' + html +'</a><br></div>';
+ side_bar_html += '<br /><div id="'+linkid+'"><a href="#" onclick="myclick(' + i + ')">' + html +'</a><br></div>';
i++;
return marker;
};
@@ -614,11 +614,11 @@ document.getElementById('side_bar').innerHTML = side_bar_html;
// === create the context menu div ===
var contextmenu = document.createElement('div');
contextmenu.style.visibility='hidden';
- contextmenu.innerHTML = '<a href="javascript:zoomIn()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom in'); ?>&nbsp;&nbsp;</div></a>'
- + '<a href="javascript:zoomOut()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom out'); ?>&nbsp;&nbsp;</div></a>'
- + '<a href="javascript:zoomInHere()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom in here'); ?>&nbsp;&nbsp;</div></a>'
- + '<a href="javascript:zoomOutHere()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom out here'); ?>&nbsp;&nbsp;</div></a>'
- + '<a href="javascript:centreMapHere()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Center map here'); ?>&nbsp;&nbsp;</div></a>';
+ contextmenu.innerHTML = '<a href="#" onclick="zoomIn()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom in'); ?>&nbsp;&nbsp;</div></a>'
+ + '<a href="#" onclick="zoomOut()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom out'); ?>&nbsp;&nbsp;</div></a>'
+ + '<a href="#" onclick="zoomInHere()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom in here'); ?>&nbsp;&nbsp;</div></a>'
+ + '<a href="#" onclick="zoomOutHere()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Zoom out here'); ?>&nbsp;&nbsp;</div></a>'
+ + '<a href="#" onclick="centreMapHere()"><div class="optionbox">&nbsp;&nbsp;<?php echo WT_I18N::translate('Center map here'); ?>&nbsp;&nbsp;</div></a>';
//BH pm_map.getContainer().appendChild(contextmenu);
// === listen for singlerightclick ===
diff --git a/modules_v3/googlemap/wt_v3_places_edit.js.php b/modules_v3/googlemap/wt_v3_places_edit.js.php
index d884413412..8ae55fdf24 100644
--- a/modules_v3/googlemap/wt_v3_places_edit.js.php
+++ b/modules_v3/googlemap/wt_v3_places_edit.js.php
@@ -391,7 +391,7 @@ if (!defined('WT_WEBTREES')) {
function remove_icon() {
document.editplaces.icon.value = '';
- document.getElementById('flagsDiv').innerHTML = '<a href="javascript:;" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>';
+ document.getElementById('flagsDiv').innerHTML = '<a href="#" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>';
}
function addAddressToMap(response) {
@@ -402,7 +402,7 @@ if (!defined('WT_WEBTREES')) {
if (response.length > 0) {
for (i=0; i<response.length; i++) {
var name = '<div id="gname" class="iwstyle">'+response[i].address_components[0].short_name+'<br /> '+response[i].geometry.location+''
- name += '<br /><a href="javascript:;" onclick="setLoc(' + response[i].geometry.location.lat() + ', ' + response[i].geometry.location.lng() + ');"><div id="namelink"><?php echo PrintReady(WT_I18N::translate('Use this value')); ?></div></a>'
+ name += '<br /><a href="#" onclick="setLoc(' + response[i].geometry.location.lat() + ', ' + response[i].geometry.location.lng() + ');"><div id="namelink"><?php echo PrintReady(WT_I18N::translate('Use this value')); ?></div></a>'
name += '</div>'
var point = response[i].geometry.location;
var marker = createMarker(i, point, name);
diff --git a/modules_v3/googlemap/wt_v3_street_view.php b/modules_v3/googlemap/wt_v3_street_view.php
index 8cd145e297..02bfe35dd7 100644
--- a/modules_v3/googlemap/wt_v3_street_view.php
+++ b/modules_v3/googlemap/wt_v3_street_view.php
@@ -1,30 +1,24 @@
<?php
-/**
- * Displays a streetview map
- *
- * webtrees: Web based Family History software
- * Copyright (C) 2011 webtrees development team.
- *
- * 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 of the License, 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 webtrees
- * @subpackage Googlemaps v3
- * @version $Id$
- *
- * @author Brian Holland (windmillway)
- */
+// Displays a streetview map
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2011 webtrees development team.
+//
+// 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 of the License, 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
+//
+// $Id$
header('Content-type: text/html; charset=UTF-8');
@@ -399,7 +393,7 @@ google.maps.event.addDomListener(window, 'load', initialize);
<div id="toggle">
<form name="myForm" title="myForm">
<!--
- <input type="button" value="street" name="sv_btn" onClick="addStreetViewOverlay()"></input>
+ <input type="button" value="street" name="sv_btn" onclick="addStreetViewOverlay()"></input>
-->
<?php