Add button for quick access to auto.log (from /df)

This commit is contained in:
prpr 2024-01-13 11:40:58 +00:00
parent d5f21d0ef5
commit f85e83f1df
2 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,7 @@ There are no tasks in the queue.
<button id=qresubmit act=resubmit class="submit needssel">Re-submit</button>
<button id=qhold act=hold class="submit needssel">Hold</button>
<button class=refresh id=refresh>Refresh</button>
<button id=viewlog class=needsdata>View auto.log</button>
<span class=isloading><img src=/img/spin.gif></span>
</div>
<div id=lastscan>Last media scan: <span id=autolast>retrieving...</span> -

View File

@ -200,6 +200,10 @@ $('#queuetab').on('click', 'a.file', function(e) {
encodeURIComponent('{root}/' + dirname(file));
});
$('#viewlog').button().click(function() {
window.location = '/log/?log=/mod/tmp/auto.log';
});
function set_loader() {
if (loader != 0)
clearInterval(loader);