Improved scripting access
authorAlexander Ebert <ebert@woltlab.com>
Wed, 5 Feb 2020 17:16:18 +0000 (18:16 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 5 Feb 2020 17:16:18 +0000 (18:16 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/acp/templates/packageList.tpl

index 81a20a34536a3b697baa31edb52a28af15f616ca..2083a50f7e0e198da5dafddfce81755b7de422af 100644 (file)
@@ -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;
                }
index cfa7e41ac1089277027eddcf4e64e74508c5368c..dc154f7e744ae64ee3344463335d7020699e96b0 100644 (file)
@@ -81,7 +81,7 @@
                        
                        <tbody>
                                {foreach from=$objects item=$package}
-                                       <tr class="jsPackageRow">
+                                       <tr class="jsPackageRow" data-package="{$package->package}">
                                                <td class="columnIcon">
                                                        {if $package->canUninstall()}
                                                                <span class="icon icon16 fa-times pointer jsUninstallButton jsTooltip" title="{lang}wcf.acp.package.button.uninstall{/lang}" data-object-id="{@$package->packageID}" data-confirm-message="{lang __encode=true}wcf.acp.package.uninstallation.confirm{/lang}" data-is-required="{if $package->isRequired()}true{else}false{/if}" data-is-application="{if $package->isApplication}true{else}false{/if}"></span>