Fixed js issue in box / menu item management
authorMarcel Werk <burntime@woltlab.com>
Thu, 12 May 2016 12:36:55 +0000 (14:36 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 12 May 2016 12:40:26 +0000 (14:40 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js
wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Menu/Item/Handler.js

index 456e7a49a70c6df34f1f0abd95642ee2890d453a..c9382bdbc82f93489a3ec03b42b62c4ecf7e5803 100644 (file)
@@ -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);
index 2029a8ef515c452a37d967f9b42fd49173043f16..7ca5faa1188f4431f425dfea547fabb0f835500d 100644 (file)
@@ -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);