mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
25 lines
488 B
JavaScript
25 lines
488 B
JavaScript
|
|
||
|
$(document).ready(function() {
|
||
|
requestLoggingStart();
|
||
|
if (!loggingHandlerInstalled)
|
||
|
{
|
||
|
loggingHandlerInstalled = true;
|
||
|
$(hyperion).on("cmd-logging-update",function(event){
|
||
|
if ($("#logmessages").length == 0)
|
||
|
{
|
||
|
requestLoggingStop();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
messages = (event.response.result.messages);
|
||
|
for(var idx=0; idx<messages.length; idx++)
|
||
|
{
|
||
|
msg = messages[idx];
|
||
|
$("#logmessages").html($("#logmessages").html()+"\n"+msg);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
});
|