Added a button to refresh current log page

This commit is contained in:
morpheus65535 2018-01-17 10:25:37 -05:00
parent 5cdde92696
commit 78f09cd9d6
2 changed files with 9 additions and 2 deletions

View File

@ -77,7 +77,7 @@ red bug icon \\
</table>
</div>
<div class="ui small modal">
<div id="modal" class="ui small modal">
<i class="close icon"></i>
<div class="header">
<div>Details</div>
@ -109,6 +109,6 @@ red bug icon \\
$('.log').click(function(){
$("#message").html($(this).data("message"));
$("#exception").html($(this).data("exception"));
$('.small.modal').modal('show');
$('#modal').modal('show');
})
</script>

View File

@ -80,6 +80,9 @@
</div>
</div>
<div class="ui bottom attached tab segment" data-tab="logs">
<div class="ui left floated basic buttons">
<button id="refresh_log" class="ui button"><i class="refresh icon"></i>Refresh current page</button>
</div>
<div class="ui right floated basic buttons">
<button id="download_log" class="ui button"><i class="download icon"></i>Download log file</button>
<button id="empty_log" class="ui button"><i class="download icon"></i>Empty log file</button>
@ -157,6 +160,10 @@
loadURL({{int(max_page)}});
})
$('#refresh_log').click(function(){
loadURL(current_page);
})
$('#download_log').click(function(){
window.location = '{{base_url}}bazarr.log';
})