another onclick

pull/11/head
Squidly271 2021-08-07 08:07:49 -04:00
parent 9102276d1d
commit 6b8753c69a
4 changed files with 4 additions and 4 deletions

View File

@ -271,7 +271,7 @@ $(function(){
window.open(href,target);
});
$('.mainArea, a').on("click",".dockerUpdate",function() {
$('body').on("click",".dockerUpdate",function() {
var container = $(this).attr("data-name");
updateDocker(container);
});

View File

@ -1,7 +1,7 @@
767d6f2203fed9541daeb57bbf7b58b3 ./Apps.page
83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page
2cdb7da0d67a11278ada7fd029707738 ./ca_settings.page
ad4710ab4aa46dac8818218449292b15 ./CommunityApps.page
ebe4e2ba5aabbe979a3505ca66595ee5 ./CommunityApps.page
7c88ace586933a4a60b0ef2f8a97a662 ./default.cfg
4344942541019c3b5464d508c7f0dd30 ./images/community.applications.png
6e48a62b91bdd066f023f46c6b491afd ./images/discord-azure.svg
@ -29,4 +29,4 @@ f9c3f431935fb20801f3fef152dc7b58 ./scripts/showStatistics.php
02759ea835ee4ce5a051fead96ab9b9b ./scripts/updatePluginSupport.php
4e97f00c3f0a52603239b00acf890990 ./skins/Narrow/css.php
1668b7fa961aef793fca369a793e7f16 ./skins/Narrow/skin.html
5c0bc81686ac8a3fd6135fe34fee5e38 ./skins/Narrow/skin.php
d12de475db056b5f71db9d3cf6c5222d ./skins/Narrow/skin.php

View File

@ -632,7 +632,7 @@ function getPopupDescriptionSkin($appNumber) {
if ( $selected ) {
$tmpRepo = strpos($template['Repository'],":") ? $template['Repository'] : $template['Repository'].":latest";
if ( ! filter_var($dockerUpdateStatus[$tmpRepo]['status'],FILTER_VALIDATE_BOOLEAN) ) {
$installLine .= "<div><a class='appIconsPopUp ca_fa-update' onclick='updateDocker(&quot;$name&quot;);'> ".tr("Update")."</a></div>";
$installLine .= "<div><a class='appIconsPopUp ca_fa-update dockerUpdate' data-name='$name'> ".tr("Update")."</a></div>";
}
$installLine .= $caSettings['defaultReinstall'] == "true" ? "<div><a class='appIconsPopUp ca_fa-install xmlInstall' data-type='default' data-xml='".addslashes($template['Path'])."'> ".tr("Reinstall (default)")."</a></div>" : "";
$installLine .= "<div><a class='appIconsPopUp ca_fa-edit xmlInstall' data-type='edit' data-xml='".addslashes($info[$name]['template'])."'> ".tr("Edit")."</a></div>";