From 3104f349acd365f67e0615b904ab205017eba6e9 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 12 May 2016 14:36:55 +0200 Subject: [PATCH] Fixed js issue in box / menu item management --- wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js | 2 +- .../install/files/js/WoltLab/WCF/Acp/Ui/Menu/Item/Handler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1