mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-10 16:57:45 +08:00
Better formatting of exception in logs viewer
This commit is contained in:
parent
a1a1292b41
commit
2ea766a67c
1 changed files with 6 additions and 1 deletions
|
@ -108,7 +108,12 @@ red bug icon \\
|
||||||
|
|
||||||
$('.log').click(function(){
|
$('.log').click(function(){
|
||||||
$("#message").html($(this).data("message"));
|
$("#message").html($(this).data("message"));
|
||||||
$("#exception").html($(this).data("exception"));
|
exception = $(this).data("exception");
|
||||||
|
exception = exception.replace(/'/g,"");
|
||||||
|
exception = exception.replace(/\\n\s\s\s\s/g, "\\n  ");
|
||||||
|
exception = exception.replace(/\\n\s\s/g, "\\n ");
|
||||||
|
exception = exception.replace(/\\n/g, "<br />")
|
||||||
|
$("#exception").html(exception);
|
||||||
$('#modal').modal('show');
|
$('#modal').modal('show');
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
Loading…
Reference in a new issue