Fixed repo popup occasionally blank

This commit is contained in:
Squidly271 2022-11-18 10:53:46 -05:00
parent 16f87c9e7d
commit cc984d8699
4 changed files with 7 additions and 5 deletions

Binary file not shown.

View File

@ -412,17 +412,18 @@ $(function(){
});
$("body").on("click",".repoPopup,.ca_repoinfo,.ca_reporeadmore,.ca_repoFromPopUp,.cardDescriptionRepo", function() {
event.stopPropagation();
var repository = $(this).data("repository");
showRepoPopup(repository);
});
$('body').on("click",".ca_holder",function(event) {
event.stopPropagation();
if (data.actions) {
data.actions = false;
return;
}
data.actions = false;
event.stopPropagation();
if ( $(this).hasClass("ca_repoPopup") ) {
var repository = $(this).data("repository");
showRepoPopup(repository);
@ -2885,6 +2886,7 @@ function showSidebarApp(apppath,appname) {
}
function showRepoPopup(repository) {
if ( !repository ) return;
data.repository = repository;
context.destroy("#supportPopup");
context.destroy("#actionsPopup");

View File

@ -1,4 +1,4 @@
095ab43b7a4823ca90b014c6850a7aaf ./Apps.page
3a9d1516de5f9140eaa18487a896e167 ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
4c5d4598e1bafa46bd90c27cbe302122 ./ca_settings.page
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
@ -22,4 +22,4 @@ da3b4f9b73c5c3bf65be6c42d68b51f9 ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
25bdaed6f62ac73f9ef7c3ce0c125ef7 ./skins/Narrow/css.php
7eb021a105e2f7a15675ec8a14e6f05e ./skins/Narrow/skin.html
23217bd2953036a0f400f6892692effa ./skins/Narrow/skin.php
a015575aa7fce19563472924155242f6 ./skins/Narrow/skin.php

View File

@ -847,13 +847,13 @@ function getRepoDescriptionSkin($repository) {
$repositories = readJsonFile($caPaths['repositoryList']);
// $templates = readJsonFile($caPaths['community-templates-info']);
$templates = &$GLOBALS['templates'];
$repo = $repositories[$repository];
$repo['icon'] = $repo['icon'] ?: "/plugins/dynamix.docker.manager/images/question.png";
$repo['bio'] = $repo['bio'] ? markdown($repo['bio']) : "<br><center>".tr("No description present");
$favRepoClass = ($caSettings['favourite'] == $repository) ? "fav" : "nonfav";
$totalApps = $totalPlugins = $totalDocker = $totalDownloads = 0;
foreach ($templates as $template) {
if ( $template['RepoName'] !== $repository ) continue;
if ( $template['BranchID'] ) continue;
@ -879,7 +879,7 @@ function getRepoDescriptionSkin($repository) {
$totalApps++;
}
$t .= "
$t = "
<div class='popUpClose'>".tr("CLOSE")."</div>
<div class='popUpBack'>".tr("BACK")."</div>
<div class='ca_popupIconArea'>