2 <!-- ++ BEGIN ++ Dynamic DNS ++ detail_logview.htm ++ -->
3 <script type=
"text/javascript">//<![CDATA[
4 function onclick_logview(section, bottom) {
6 var txt = document.getElementById(
"cbid.ddns." + section +
"._logview.txt"); // TextArea
7 if ( !txt ) { return; } // security check
9 XHR.get('<%=url('admin/services/ddns/logview')%
>/' + section, null,
11 if (x.responseText ==
"_nodata_")
12 txt.value =
"<%:File not found or empty%>";
14 txt.value = x.responseText;
16 txt.scrollTop = txt.scrollHeight;
28 -- one button on top, one at the buttom
30 <input class=
"cbi-button cbi-input-button" style=
"align: center; width: 100%" type=
"button" onclick=
"onclick_logview(this.name, false)"
32 attr(
"name", section) .. attr(
"id", cbid ..
".btn1") .. attr(
"value", self.inputtitle)
38 -- set a readable style taken from openwrt theme for textarea#syslog
39 -- in openwrt theme there are problems with a width of
100 so we check for theme and set to lower value
41 <textarea style=
"width: <%if media == "/luci-static/openwrt.org
" then%>98.7%<%else%>100%<%end%> ; min-height: 500px; border: 3px solid #cccccc; padding: 5px; font-family: monospace; resize: none;" wrap=
"off" readonly=
"readonly"
43 attr(
"name", cbid ..
".txt") .. attr(
"id", cbid ..
".txt") .. ifattr(self.rows,
"rows")
45 <%-=pcdata(self:cfgvalue(section))-%
>
50 -- one button on top, one at the buttom
52 <input class=
"cbi-button cbi-input-button" style=
"align: center; width: 100%" type=
"button" onclick=
"onclick_logview(this.name, true)"
53 <%= attr(
"name", section) .. attr(
"id", cbid ..
".btn2") .. attr(
"value", self.inputtitle) %
> />
56 <!-- ++ END ++ Dynamic DNS ++ detail_logview.htm ++ -->