Skip to content
Permalink
Browse files

fix some js errors

  • Loading branch information...
teiling88 committed Sep 13, 2017
1 parent 5bdaae7 commit e22baf1ca5d3622106799f5e96a4b193c69b55a7
Showing with 14 additions and 12 deletions.
  1. +1 −1 htdocs/map2.php
  2. +8 −6 htdocs/templates2/ocstyle/map2.tpl
  3. +5 −5 htdocs/templates2/ocstyle/sys_main.tpl
@@ -126,7 +126,7 @@
$tpl->error($translate->t('There is no google maps key registered for this domain.', '', '', 0));
}
$tpl->add_header_javascript($opt['page']['protocol'] . '://maps.googleapis.com/maps/api/js?sensor=false&key=' . urlencode($sGMKey) . '&language=' . strtolower($opt['template']['locale']));
$tpl->add_header_javascript($opt['page']['protocol'] . '://maps.googleapis.com/maps/api/js?key=' . urlencode($sGMKey) . '&language=' . strtolower($opt['template']['locale']));
// https is supported by google, but may make problems in some environments,
// e.g. does not work with MSIE 7 on WinXP
$tpl->add_header_javascript('resource2/misc/map/dragzoom_packed.js');
@@ -187,7 +187,7 @@ function eval_filtercookies(aValues)
for (var iValue=0; iValue<aValues.length; iValue++)
{
fs = aValues[iValue].split(':');
var fs = aValues[iValue].split(':');
if (fs[0] == 'types')
{
@@ -222,7 +222,7 @@ function eval_filtercookies(aValues)
}
else if (fs[0] == 'rated')
{
fr = fs[1].split(',');
var fr = fs[1].split(',');
document.getElementById('terrainmin').value = fr[0];
document.getElementById('terrainmax').value = fr[1];
document.getElementById('difficultymin').value = fr[2];
@@ -231,7 +231,7 @@ function eval_filtercookies(aValues)
}
else if (fs[0] == 'attr')
{
fa = ',' + fs[1] + ',';
var fa = ',' + fs[1] + ',';
{/literal}{strip}
{foreach from=$aAttributes item=attribGroupItem}
@@ -243,7 +243,7 @@ function eval_filtercookies(aValues)
}
}
mbFilterCookieLoaded = true;
var mbFilterCookieLoaded = true;
}
function eva(fa,id,icon)
@@ -316,6 +316,7 @@ function cookieSave(permanent_filter)
document.getElementById('recommendationmin').value;
var sAttrFilter = '';
var nAttribId;
for (nAttribId=1; nAttribId<=nMaxAttributeId; nAttribId++)
{
var ao = document.getElementById('attribute' + nAttribId);
@@ -815,7 +816,7 @@ function NewCacheMarker(nLat, nLon, sWaypoint, nType, nFlags, sName, nZindex)
var mi = new google.maps.MarkerImage(image + '.png');
mi.anchor = anchor;
marker = new google.maps.Marker(
var marker = new google.maps.Marker(
{ position: new google.maps.LatLng(nLat, nLon),
map: moMap,
title: sName,
@@ -1427,6 +1428,7 @@ function coordtext(coord)
function showcoords(lat,lng)
{
var lattext, longtext;
if (lat < 0) { lattext = "S " + coordtext(-lat) }
else { lattext = "N " + coordtext(lat); }
@@ -2108,7 +2110,7 @@ function get_searchfilter_params(output, skipqueryid, zip)
/* rating options
*/
nSelectValue = document.getElementById('terrainmin').value;
var nSelectValue = document.getElementById('terrainmin').value;
if (nSelectValue != 0) sPostBody += '&terrainmin=' + nSelectValue;
nSelectValue = document.getElementById('terrainmax').value;
if (nSelectValue != 0) sPostBody += '&terrainmax=' + nSelectValue;
@@ -74,15 +74,15 @@
window.setTimeout('resetbutton(\'' + bname + '\')', 350);
}

img1 = new Image();
var img1 = new Image();
img1.src = "resource2/ocstyle/images/page/nav2-bg.png";
img2 = new Image();
var img2 = new Image();
img2.src = "resource2/ocstyle/images/page/nav2-sel-bg.png";
img3 = new Image();
var img3 = new Image();
img3.src = "resource2/ocstyle/images/page/nav3-title-bg.png";
img4 = new Image();
var img4 = new Image();
img4.src = "resource2/ocstyle/images/page/section-bg.png";
img5 = new Image();
var img5 = new Image();
img5.src = "resource2/ocstyle/images/page/listheader-bg.png";
//-->
</script>

0 comments on commit e22baf1

Please sign in to comment.
You can’t perform that action at this time.