mirror of
https://github.com/kenzok8/small-package
synced 2025-01-09 08:59:26 +08:00
21 lines
682 B
HTML
Executable File
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>
|