polished log button and content of dbox
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user