summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-freifunk
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-mod-freifunk')
-rw-r--r--modules/luci-mod-freifunk/htdocs/luci-static/resources/osm.js6
-rw-r--r--modules/luci-mod-freifunk/luasrc/view/freifunk-map/frame.htm2
-rw-r--r--modules/luci-mod-freifunk/luasrc/view/freifunk-map/map.htm2
3 files changed, 5 insertions, 5 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', {
diff --git a/modules/luci-mod-freifunk/luasrc/view/freifunk-map/frame.htm b/modules/luci-mod-freifunk/luasrc/view/freifunk-map/frame.htm
index dbf3820f5c..bd936ac705 100644
--- a/modules/luci-mod-freifunk/luasrc/view/freifunk-map/frame.htm
+++ b/modules/luci-mod-freifunk/luasrc/view/freifunk-map/frame.htm
@@ -4,7 +4,7 @@
local has_latlon = false
local uci = require "luci.model.uci".cursor()
uci:foreach("olsrd", "LoadPlugin", function(s)
- if s.library == "olsrd_nameservice.so.0.3" and s.latlon_file then
+ if s.library == "olsrd_nameservice" and s.latlon_file then
has_latlon = true
end
end)
diff --git a/modules/luci-mod-freifunk/luasrc/view/freifunk-map/map.htm b/modules/luci-mod-freifunk/luasrc/view/freifunk-map/map.htm
index c3951f9c63..f69401d6e3 100644
--- a/modules/luci-mod-freifunk/luasrc/view/freifunk-map/map.htm
+++ b/modules/luci-mod-freifunk/luasrc/view/freifunk-map/map.htm
@@ -85,7 +85,7 @@
local uci = require "luci.model.uci".cursor()
uci:foreach("olsrd", "LoadPlugin", function(s)
- if s.library == "olsrd_nameservice.so.0.3" and s.latlon_file then
+ if s.library == "olsrd_nameservice" and s.latlon_file then
fd = io.open(s.latlon_file)
end
end)