From: Alexander Ebert Date: Tue, 6 Mar 2012 21:49:21 +0000 (+0100) Subject: Package uninstallation should work everywhere now X-Git-Tag: 2.0.0_Beta_1~1245^2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db6c8316f9f5e3854a6ce3a7c4f4542b8496f89e;p=GitHub%2FWoltLab%2FWCF.git Package uninstallation should work everywhere now Yes, packageView.tpl seems to be still buggy, investigating this tomorrow or whatever. Fixes #498 --- 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}