Syslog: added viewer

This commit is contained in:
bergware
2019-02-10 09:42:36 +01:00
parent 437600373d
commit 08d7c6fe46
+5 -5
View File
@@ -70,12 +70,12 @@ function resize() {
$('pre.up').height(Math.max(window.innerHeight-320,330));
}
function showLog(log) {
$('span.label input[type=checkbox]').prop('checked',true);
$('span.label').each(function(){
var type = $(this).attr('class').replace('label','').replace(/-/g,'');
$(this).removeClass().addClass(type+' label');
});
$.post('/webGui/include/Syslog.php',{log:log},function(data){
$('span.label input[type=checkbox]').prop('checked',true);
$('span.label').each(function(){
var type = $(this).attr('class').replace('label','').replace(/-/g,'');
$(this).removeClass().addClass(type+' label');
});
$('pre.up').html(data);
<?if ($display['resize']):?>
resize();