From 3010388ce937e56bf08380a5ffa118f61d148165 Mon Sep 17 00:00:00 2001 From: Patrick Grimm Date: Sun, 9 Jan 2011 17:18:07 +0000 Subject: applications/luci-ffwizard: initial --- .../luci-ffwizard/luasrc/view/cbi/osmll_value.htm | 116 +++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 applications/luci-ffwizard/luasrc/view/cbi/osmll_value.htm (limited to 'applications/luci-ffwizard/luasrc/view') diff --git a/applications/luci-ffwizard/luasrc/view/cbi/osmll_value.htm b/applications/luci-ffwizard/luasrc/view/cbi/osmll_value.htm new file mode 100644 index 0000000000..07bd7582b6 --- /dev/null +++ b/applications/luci-ffwizard/luasrc/view/cbi/osmll_value.htm @@ -0,0 +1,116 @@ +<%# +cc-by-sa Andreas Pittrich +in behalf of the german pirate party (Piratenpartei) +www.piratenpartei.de + +$Id$ + +-%> +<%+cbi/valueheader%> + + + <% if self:cfgvalue(section) ~= false then %> + <% if self.latfield and self.lonfield then %> + /> + /> + <% end %> + /> + /> + /> + <% end %> + + <% if self.popup then %> + + onclick=" + popup=window.open('/luci-static/resources/OSMLatLon.htm', '<%=cbid%>.window', 'innerWidth=<%=self.width%>, innerHeight=<%=self.height%>, location=no, menubar=no, scrollbars=no, status=no, toolbar=no'); + popup.focus(); + " + /> + +
+ <% else %> + + onclick=" + set_lat_lon(); + document.getElementById('<%=cbid..".hideosm"%>').style.display='inline'; + document.getElementById('<%=cbid..".displayosm"%>').style.display='none'; + for(var i = 0; Math.min(i, window.frames.length)!=window.frames.lengths; i++){ + if(frames[i].name=='<%=cbid..".iframe"%>'){ + document.getElementById('<%=cbid..".iframediv"%>').style.display='block'; + frames[i].location.href='/luci-static/resources/OSMLatLon.htm'; + } + } + " + /> + + onclick=" + document.getElementById('<%=cbid..".displayosm"%>').style.display='inline'; + document.getElementById('<%=cbid..".hideosm"%>').style.display='none'; + document.getElementById('<%=cbid..".iframediv"%>').style.display='none'; + " + /> +
+
" style="display:none"> + + <%end%> + +<%+cbi/valuefooter%> -- cgit v1.2.3