kenzok8-package/luci-app-autoupdate/luasrc/view/autoupdate/autoupdate_log.htm
2023-03-03 19:12:20 +08:00

21 lines
682 B
HTML
Executable File

<% local module = require "luci.dispatcher" -%>
<script type="text/javascript">
//<![CDATA[
function clearlog(btn) {
}
XHR.poll(2, '<%=module.build_url("admin/system/autoupdate/print_log")%>', null,
function(x, data) {
if(x && x.status == 200) {
var log_textarea = document.getElementById('log_textarea');
log_textarea.innerHTML = x.responseText;
log_textarea.scrollTop = log_textarea.scrollHeight;
}
}
);
//]]>
</script>
<fieldset class="cbi-section" id="_log_fieldset" >
<textarea id="log_textarea" class="cbi-input-textarea" style="width: 100%;margin-top: 10px;" data-update="change" rows="30" wrap="off" readonly="readonly"></textarea>
</fieldset>