luci-0.9: merge r5027
This commit is contained in:
parent
81d7f37cb6
commit
f9663bc6b6
1 changed files with 15 additions and 5 deletions
|
@ -65,6 +65,9 @@
|
|||
function ffmapinit()
|
||||
{
|
||||
if(null!=window.map)map.Dispose();
|
||||
|
||||
var INFINITE = 99.99;
|
||||
|
||||
map = new VEMap('ffmap');
|
||||
<%
|
||||
local fd
|
||||
|
@ -77,12 +80,19 @@
|
|||
end)
|
||||
|
||||
if fd then
|
||||
while true do
|
||||
local ln = fd:read("*l")
|
||||
if not ln then break end
|
||||
write(ln)
|
||||
end
|
||||
local data = fd:read("*a")
|
||||
fd:close()
|
||||
|
||||
if data then
|
||||
local line
|
||||
for line in data:gmatch("[^\n]+") do
|
||||
if line:match(";$") then
|
||||
write(line .. "\n")
|
||||
else
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
%>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue