From: Marcel Werk Date: Fri, 27 May 2016 16:08:01 +0000 (+0200) Subject: Fixed disabling of the landing page X-Git-Tag: 3.0.0_Beta_1~1588 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a8a34ca58f54b011ae274dbf9375563d8963c2c;p=GitHub%2FWoltLab%2FWCF.git Fixed disabling of the landing page --- diff --git a/wcfsetup/install/files/acp/templates/pageAdd.tpl b/wcfsetup/install/files/acp/templates/pageAdd.tpl index a21a56526b..e39174a8e0 100644 --- a/wcfsetup/install/files/acp/templates/pageAdd.tpl +++ b/wcfsetup/install/files/acp/templates/pageAdd.tpl @@ -12,15 +12,17 @@ } }).trigger('change'); - $('#isDisabled').change(function(event) { - if ($('#isDisabled')[0].checked) { - $('#isLandingPage')[0].checked = false; - $('#isLandingPage')[0].disabled = true; - } - else { - $('#isLandingPage')[0].disabled = false; - } - }).trigger('change'); + {if $action != 'edit' || !$page->isLandingPage} + $('#isDisabled').change(function(event) { + if ($('#isDisabled')[0].checked) { + $('#isLandingPage')[0].checked = false; + $('#isLandingPage')[0].disabled = true; + } + else { + $('#isLandingPage')[0].disabled = false; + } + }).trigger('change'); + {/if} });