polished log button and content of dbox

This commit is contained in:
2022-02-06 16:11:41 +11:00
parent 645d419748
commit 66eab072ce
4 changed files with 26 additions and 10 deletions

View File

@@ -284,10 +284,14 @@ function JoblogSearch()
data="eid="+current
$.ajax({ type: 'POST', data: data, url: '/joblog_search', success: function(res) {
data = JSON.parse(res)
div='<div>'
div ='<div><table class="table table-striped table-sm sm-txt">'
div+='<tr><th>Log</th><th>When</th><th>Job</th></tr>'
for( i=0; i<data.length; i++ )
div+='Log: ' + data[i].log + '<br>'
div+='</div>'
{
div+='<tr><td>' + data[i].log + '</td><td>' + data[i].log_date + '</td><td>'
div+='<a href="/job/' + data[i].id + '">' + data[i].name + ' #:'+data[i].id+'</a></td></tr>'
}
div+='</table></div>'
$('#dbox-title').html("Logs relating to this filename")
$('#dbox-content').html(div)
$('#dbox').modal('show')