From cdfed2c31b1b1a6e69b6c9704d7f0dd4ebb58b54 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 5 Feb 2020 18:16:18 +0100 Subject: [PATCH] Improved scripting access --- wcfsetup/install/files/acp/js/WCF.ACP.js | 5 +++++ wcfsetup/install/files/acp/templates/packageList.tpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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()} -- 2.20.1