Changeset 5027

Show
Ignore:
Timestamp:
07/07/09 19:30:26 (4 years ago)
Author:
jow
Message:

modules/freifunk: fix some quirks in the map

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/freifunk/luasrc/view/freifunk-map/map.htm

    r4606 r5027  
    6666            { 
    6767                if(null!=window.map)map.Dispose(); 
     68 
     69                var INFINITE = 99.99; 
     70 
    6871                map = new VEMap('ffmap'); 
    6972                <% 
     
    7881 
    7982                    if fd then 
    80                         while true do 
    81                             local ln = fd:read("*l") 
    82                             if not ln then break end 
    83                             write(ln) 
     83                        local data = fd:read("*a") 
     84                        fd:close() 
     85 
     86                        if data then 
     87                            local line 
     88                            for line in data:gmatch("[^\n]+") do 
     89                                if line:match(";$") then 
     90                                    write(line .. "\n") 
     91                                else 
     92                                    break 
     93                                end 
     94                            end 
    8495                        end 
    85                         fd:close() 
    8696                    end 
    8797                %>