404 on sidebar app icon wouldn't display the question mark

master
Squidly271 2023-04-20 09:20:37 -04:00
parent 9f668a908d
commit dae68e956a
3 changed files with 7 additions and 1 deletions

View File

@ -2874,6 +2874,12 @@ function showSidebarApp(apppath,appname) {
setTimeout(function() {
post({action:'getPopupDescription',appName:appname,appPath:apppath},function(result) {
$("#sidenavContent").html(result.description);
$('img').on("error",function() {
if ( $(this).hasClass("spotlightIcon") )
$(this).attr('src','<?=$caPaths['SpotlightIcon-backup']?>');
else
$(this).attr('src',"/plugins/dynamix.docker.manager/images/question.png");
});
$('.screenshot').magnificPopup({
closeMarkup: "<span class='mfp-close narrow'>"+tr("CLOSE")+"</span>",
closeOnContentClick: true,

View File

@ -1,4 +1,4 @@
8bfbfe80c80a69cbe56675912c8fa7ba ./Apps.page
211c69767aba91427ee20f4984af1efe ./Apps.page
106b521c1feebda4d7b3f558cc016cda ./CA_notices.page
eb1f0ee4148747c0473e73e4e973994f ./ca_settings.page
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg