From: Alexander Ebert Date: Wed, 5 Feb 2020 17:16:18 +0000 (+0100) Subject: Improved scripting access X-Git-Tag: 5.2.2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cdfed2c31b1b1a6e69b6c9704d7f0dd4ebb58b54;p=GitHub%2FWoltLab%2FWCF.git Improved scripting access --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index 81a20a3453..2083a50f7e 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -1031,6 +1031,11 @@ WCF.ACP.Package.Update.Search = Class.extend({ * @param jQuery jqXHR */ _success: function(data, textStatus, jqXHR) { + if (typeof window._trackSearchForUpdates === 'function') { + window._trackSearchForUpdates(data); + return; + } + if (data.returnValues.url) { window.location = data.returnValues.url; } diff --git a/wcfsetup/install/files/acp/templates/packageList.tpl b/wcfsetup/install/files/acp/templates/packageList.tpl index cfa7e41ac1..dc154f7e74 100644 --- a/wcfsetup/install/files/acp/templates/packageList.tpl +++ b/wcfsetup/install/files/acp/templates/packageList.tpl @@ -81,7 +81,7 @@ {foreach from=$objects item=$package} - + {if $package->canUninstall()}