summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-freifunk/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-02 13:52:37 +0100
committerGitHub <noreply@github.com>2018-11-02 13:52:37 +0100
commitd1c24c8972f9323aa616c142019cbc89d6dd0272 (patch)
treefdd75e2206f6b2e4798692833dbffca3754f9dd6 /modules/luci-mod-freifunk/htdocs
parent1c076cd26dde1d510658e8cb7cb2ca0ba0205a82 (diff)
parentec63339ae5258509cf7a8829d4dd79519948c256 (diff)
Merge pull request #2252 from stweil/lgtm
Add missing variable declarations in JavaScript code
Diffstat (limited to 'modules/luci-mod-freifunk/htdocs')
-rw-r--r--modules/luci-mod-freifunk/htdocs/luci-static/resources/osm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-mod-freifunk/htdocs/luci-static/resources/osm.js b/modules/luci-mod-freifunk/htdocs/luci-static/resources/osm.js
index cae0cd66f7..48ae91cd81 100644
--- a/modules/luci-mod-freifunk/htdocs/luci-static/resources/osm.js
+++ b/modules/luci-mod-freifunk/htdocs/luci-static/resources/osm.js
@@ -53,8 +53,8 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
trigger: function(e) {
var lonlat = map.getLonLatFromViewPortPx(e.xy);
- lat=merc2lat(lonlat.lat);
- lon=merc2lon(lonlat.lon);
+ var lat=merc2lat(lonlat.lat);
+ var lon=merc2lon(lonlat.lon);
if(parent.document.getElementById(latfield_id)==null){
latfield=document.getElementById('osmlat');
}else{
@@ -92,7 +92,7 @@ function init(){
function drawmap() {
OpenLayers.Lang.setCode('de');
- mapdiv=document.getElementById('map');
+ var mapdiv=document.getElementById('map');
mapdiv.style.height=window.innerHeight+"px";
mapdiv.style.width=window.innerWidth+"px";
map = new OpenLayers.Map('map', {