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:
2022-02-06 11:36:25 +11:00
parent 83eff02910
commit 645d419748
3 changed files with 29 additions and 10 deletions

View File

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