fix up bug where sucess used instead of success, also if we delete/restore/move a file from inside the viewer, then adjust the files* divs, and go out of the viewer (back/up) and show updated files div
This commit is contained in:
@@ -80,16 +80,19 @@ function DrawImg()
|
||||
// -50 is a straight up hack, no idea why this works, but its good enough for me
|
||||
if (!Array.isArray(am))
|
||||
{
|
||||
const style = 'position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);';
|
||||
$('#throbber').attr('style', style + ' height: 96px;');
|
||||
$('#white-circle').attr('style', style + ' height: 72px;');
|
||||
$('#throbber').show()
|
||||
$('#white-circle').show()
|
||||
if(am.type.which == 'img' )
|
||||
$('#inside-img').attr('style', style + ' height: 64px;').attr('src', '/internal/'+am.type.what );
|
||||
{
|
||||
$('#inside-img').attr('src', '/internal/'+am.type.what );
|
||||
$('#inside-img').show()
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#inside-icon').attr('style', `${style} color:${am.type.colour}; height: 64px;`)
|
||||
$('#inside-icon').attr('style', `color:${am.type.colour};height:64px` )
|
||||
$('#inside-icon').attr('fill', am.type.colour )
|
||||
$('#inside-icon use').attr('xlink:href', `/internal/icons.svg#${am.type.what}`);
|
||||
$('#inside-icon').show()
|
||||
}
|
||||
} else {
|
||||
$('#throbber').hide()
|
||||
|
||||
Reference in New Issue
Block a user