moved JoblogSearch to internal/js/ as it does not need any jinja processing, added button and hotkey to show logs, and brief logs into dbox - it works, but needs prettying up
This commit is contained in:
@@ -275,3 +275,22 @@ function FaceDBox(key, item)
|
||||
$('#dbox-content').html(div)
|
||||
$('#dbox').modal('show')
|
||||
}
|
||||
|
||||
|
||||
// func called to show logs relating to this filename from viewer
|
||||
// pops results up in a dbox
|
||||
function JoblogSearch()
|
||||
{
|
||||
data="eid="+current
|
||||
$.ajax({ type: 'POST', data: data, url: '/joblog_search', success: function(res) {
|
||||
data = JSON.parse(res)
|
||||
div='<div>'
|
||||
for( i=0; i<data.length; i++ )
|
||||
div+='Log: ' + data[i].log + '<br>'
|
||||
div+='</div>'
|
||||
$('#dbox-title').html("Logs relating to this filename")
|
||||
$('#dbox-content').html(div)
|
||||
$('#dbox').modal('show')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user