mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Transit translation system (#309)
* update schemas * update schemas * update schemas * schema update * update translation * upd
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
|
||||
var conf_editor = null;
|
||||
|
||||
$(document).ready(function() {
|
||||
performTranslation();
|
||||
requestLoggingStart();
|
||||
|
||||
schema = parsedConfSchemaJSON.properties;
|
||||
conf_editor = createJsonEditor('editor_container', {
|
||||
logger : schema.logger
|
||||
}, true);
|
||||
|
||||
$('#editor_container h3').remove();
|
||||
|
||||
$('#btn_submit').off().on('click',function() {
|
||||
requestWriteConfig(conf_editor.getValue());
|
||||
});
|
||||
|
||||
$('#btn_autoscroll').off().on('click',function() {
|
||||
toggleClass('#btn_autoscroll', "btn-success", "btn-danger");
|
||||
});
|
||||
|
||||
|
||||
if (!loggingHandlerInstalled)
|
||||
{
|
||||
loggingHandlerInstalled = true;
|
||||
@@ -15,9 +35,14 @@ $(document).ready(function() {
|
||||
for(var idx=0; idx<messages.length; idx++)
|
||||
{
|
||||
msg = messages[idx];
|
||||
$("#logmessages").html($("#logmessages").html()+"\n"+msg);
|
||||
$("#logmessages").html($("#logmessages").html()+"\n <code>"+msg+"</code>");
|
||||
|
||||
}
|
||||
if($("#btn_autoscroll").hasClass('btn-success')){
|
||||
$('#logmessages').stop().animate({
|
||||
scrollTop: $('#logmessages')[0].scrollHeight
|
||||
}, 800);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user