From db6c8316f9f5e3854a6ce3a7c4f4542b8496f89e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Mar 2012 22:49:21 +0100 Subject: [PATCH] Package uninstallation should work everywhere now Yes, packageView.tpl seems to be still buggy, investigating this tomorrow or whatever. Fixes #498 --- wcfsetup/install/files/acp/templates/packageList.tpl | 2 +- .../files/acp/templates/packageListDetailed.tpl | 9 ++++++++- .../install/files/acp/templates/packageListPlugins.tpl | 4 ++-- wcfsetup/install/files/acp/templates/packageView.tpl | 10 ++++++---- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/packageList.tpl b/wcfsetup/install/files/acp/templates/packageList.tpl index 501286fe99..6719eebf30 100644 --- a/wcfsetup/install/files/acp/templates/packageList.tpl +++ b/wcfsetup/install/files/acp/templates/packageList.tpl @@ -6,7 +6,7 @@ WCF.TabMenu.init(); WCF.Language.add('wcf.acp.package.view.button.uninstall.sure', 'wcf.acp.package.view.button.uninstall.sure'); - new WCF.ACP.Package.Uninstallation($('.package .uninstallButton')); + new WCF.ACP.Package.Uninstallation($('.jsPackageContainer .jsUninstallButton')); {if $pluginsCount > 1} WCF.Icon.addObject({ diff --git a/wcfsetup/install/files/acp/templates/packageListDetailed.tpl b/wcfsetup/install/files/acp/templates/packageListDetailed.tpl index 9ad9dabeec..2eb5ff29b3 100644 --- a/wcfsetup/install/files/acp/templates/packageListDetailed.tpl +++ b/wcfsetup/install/files/acp/templates/packageListDetailed.tpl @@ -64,7 +64,7 @@ {/if} {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package->package != 'com.woltlab.wcf' && $package->packageID != PACKAGE_ID} - + {else} {/if} @@ -101,6 +101,13 @@ {@$pagesLinks} {hascontent} + diff --git a/wcfsetup/install/files/acp/templates/packageView.tpl b/wcfsetup/install/files/acp/templates/packageView.tpl index 507eaf198a..0f91141f50 100644 --- a/wcfsetup/install/files/acp/templates/packageView.tpl +++ b/wcfsetup/install/files/acp/templates/packageView.tpl @@ -4,6 +4,8 @@ // @@ -130,7 +132,7 @@ {content} {foreach from=$package->getRequiredPackages() item=requiredPackage} - + {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')} @@ -138,7 +140,7 @@ {/if} {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $requiredPackage->package != 'com.woltlab.wcf' && $requiredPackage->packageID != PACKAGE_ID} - + {else} {/if} @@ -190,7 +192,7 @@ {content} {foreach from=$package->getDependentPackages() item=dependentPackage} - + {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')} @@ -198,7 +200,7 @@ {/if} {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $dependentPackage->package != 'com.woltlab.wcf' && $dependentPackage->packageID != PACKAGE_ID} - + {else} {/if} -- 2.20.1