when viewing image, with fname, show full path with icon of path

This commit is contained in:
2021-09-22 19:59:18 +10:00
parent a1f8afa781
commit db6319c5ab
3 changed files with 31 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ function DrawImg()
if( $('#fname_toggle').prop('checked' ) )
{
// reset fname for new image (if navigated left/right to get here)
$('#fname').html(objs[current].name)
$('#fname').html(PrettyFname(objs[current].name))
$('.figcaption').show()
}
else
@@ -157,7 +157,7 @@ function ViewImageOrVideo()
$('#video_div').hide()
if( $('#fname_toggle').prop('checked' ) )
$('#img-cap').show()
$('#fname_i').html(objs[current].name)
$('#fname_i').html(PrettyFname(objs[current].name))
$('#figure').show()
if( fullscreen )
$('#canvas').get(0).requestFullscreen()
@@ -166,7 +166,7 @@ function ViewImageOrVideo()
{
$('#figure').hide()
$('#video').prop('src', '../' + objs[current].url )
$('#fname_v').html(objs[current].name)
$('#fname_v').html(PrettyFname(objs[current].name))
if( $('#fname_toggle').prop('checked' ) )
$('#img-cap').hide()
ResizeVideo()