From: Marcel Werk Date: Thu, 12 May 2016 12:36:55 +0000 (+0200) Subject: Fixed js issue in box / menu item management X-Git-Tag: 3.0.0_Beta_1~1739 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3104f349acd365f67e0615b904ab205017eba6e9;p=GitHub%2FWoltLab%2FWCF.git Fixed js issue in box / menu item management --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js b/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js index 456e7a49a7..c9382bdbc8 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js @@ -78,7 +78,7 @@ define(['Dictionary', 'WoltLab/Wcf/Ui/Page/Search/Handler'], function(Dictionary if (value == 'internal') { elShow(_containerPageID); elHide(_containerExternalLink); - this._togglePageId(); + if (_handlers.size) this._togglePageId(); } if (value == 'external') { elHide(_containerPageID); diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Menu/Item/Handler.js b/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Menu/Item/Handler.js index 2029a8ef51..7ca5faa118 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Menu/Item/Handler.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Menu/Item/Handler.js @@ -73,7 +73,7 @@ define(['Dictionary', 'WoltLab/Wcf/Ui/Page/Search/Handler'], function(Dictionary if (~~value) { elShow(_containerInternalLink); elHide(_containerExternalLink); - this._togglePageId(); + if (_handlers.size) this._togglePageId(); } else { elHide(_containerInternalLink);