Added a button to refresh current log page

pull/56/merge
morpheus65535 7 years ago
parent 5cdde92696
commit 78f09cd9d6

@ -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>

@ -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';
})

Loading…
Cancel
Save