Display default icon on popup if a 404

This commit is contained in:
Squidly271 2021-02-27 07:29:47 -05:00
parent fd5b63f8e5
commit 7511b93a87
4 changed files with 8 additions and 4 deletions

Binary file not shown.

View File

@ -389,8 +389,6 @@ $(function(){
post({action:"changeSortOrder",sortOrder:sortOrder},function() {
changeSortOrder();
$("#sortIconArea").toggle("slow");
});
});
@ -571,9 +569,14 @@ function setToolTip() {
triggerClose:{click:true},
onlyOne:true,
functionBefore: function(instance,helper) {
$(".ca_repoPopup").tooltipster("hide");
var origin = $(helper.origin);
var repository = origin.attr("data-repository");
if ( ! $(origin).hasClass("ca_repoPopup") && popupVisible() ) {
origin.tooltipster("close");
return false;
}
$(".ca_repoPopup").tooltipster("hide");
post({action:'getRepoDescription',repository:repository},function(data) {
origin.tooltipster("content",data.description);
});

View File

@ -165,6 +165,7 @@ a.ca_reporeadmore {cursor:pointer;text-decoration:none;}
a.ca_appreadmore {cursor:pointer;text-decoration:none;}
a.ca_reporeadmore:hover {color:<?=$unRaid66color?>;}
a.ca_appreadmore:hover {color:<?=$unRaid66color?>;}
.ca_href {cursor:pointer;}
input[type=checkbox] {width:2rem;height:2rem;margin-right:1rem;margin-top:-.5rem;margin-left:0rem;}
.enabledIcon {cursor:pointer;color:<?=$unRaid66color?>;}
.disabledIcon {color:#040404;font-size:2.5rem;}

View File

@ -578,7 +578,7 @@ function getPopupDescriptionSkin($appNumber) {
$templateIcon = startsWith($template['IconFA'],"icon-") ? $template['IconFA'] : "fa fa-{$template['IconFA']}";
$templateDescription .= "<i class='$templateIcon popupIcon ca_center'></i>";
} else
$templateDescription .= "<img class='popupIcon' src='{$template['Icon']}'>";
$templateDescription .= "<img class='popupIcon' src='{$template['Icon']}' onerror='this.src=&quot;/plugins/dynamix.docker.manager/images/question.png&quot;'>";
$templateDescription .= "</div>";