Skip to content
Permalink
Browse files

Update log.html

  • Loading branch information...
directman66 committed May 6, 2019
1 parent e005732 commit 2accb817073d363f8d360d4db46991576e7dfdf3
Showing with 23 additions and 24 deletions.
  1. +23 −24 templates/zigbee2mqtt/log.html
@@ -43,7 +43,7 @@
</table>


[#FN#]:<hr>
<!-- [#FN#]:-->



@@ -55,52 +55,51 @@
// window.clearTimeout(logTimer);
// clearTimeout(deviceRefreshTimer[#ID#]);
var url="/ajax/zigbee2mqtt.html?op=viewlog&fn="+fn;
$("#auth_log").html('wait...');
// $("#auth_log").html('wait...');
$.ajax({
url: url,
cache: false,
success: function(html){
$("#auth_log").html(html);
}
});
logTimer = window.setTimeout('viewlog(fn);',3000);
// logTimer = window.setTimeout('viewlog(fn);',1000);
// logTimer = window.setTimeout('viewlog();',2000);
// logTimer = window.setTimeout('viewlog("/opt/zigbee2mqtt/data/log/2019-05-05.22-35-52/log.txt");',1000);
logTimer = window.setTimeout('viewlog("[#FN#]");',2000);
// viewlog("[#FN#]");
}
viewlog("[#FN#]");
</script>
<div class="modal fade" id="viewlog" tabindex="-1" role="dialog" aria-labelledby="about1" aria-hidden="true" height="100">
<div class="modal-dialog-lg">
<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">Log zigbee2mqtt</h4>
</div>
<div class="modal-body">
<!--<div class="modal fade" id="viewlog" tabindex="-1" role="dialog" aria-labelledby="about1" aria-hidden="true" height="100"> -->
<div id="viewlog" tabindex="-1" role="dialog" aria-labelledby="about1" aria-hidden="true" height="100">


<div>

<pre class="pre-scrollable" id="auth_log" style="word-wrap: break-word;">
wait...
</pre>
</div>
<p class="float-left"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

<p id="auth_log" > </p>

</div>
</div>
</div>

</div>





<p id="auth_log" > </p>
</div>
</div>



<!-- <a onclick="viewlog('[#FN#]')" class="btn btn-default" data-toggle="modal" data-target="#viewlog" title="View"><i class="glyphicon glyphicon-film"></i></a> -->

<a onclick="viewlog('[#FN#]')" class="btn btn-default" data-toggle="modal" data-target="#viewlog" title="View"><i class="glyphicon glyphicon-user"></i></a>

<br>

[#LOG#]
[#LOG2#]

0 comments on commit 2accb81

Please sign in to comment.
You can’t perform that action at this time.