Display default icon on popup if a 404
parent
fd5b63f8e5
commit
7511b93a87
Binary file not shown.
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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;}
|
||||
|
|
|
@ -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="/plugins/dynamix.docker.manager/images/question.png"'>";
|
||||
|
||||
$templateDescription .= "</div>";
|
||||
|
||||
|
|
Loading…
Reference in New Issue