From: Matthias Schmidt Date: Sun, 31 Jul 2016 11:02:25 +0000 (+0200) Subject: Trim title of page object look up dialog X-Git-Tag: 3.0.0_Beta_1~854 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2da7687e701f3ae0ac9b742d50818b26dd232a0d;p=GitHub%2FWoltLab%2FWCF.git Trim title of page object look up dialog --- 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 0a07f3ec28..14297e5852 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 @@ -135,7 +135,7 @@ define(['Dictionary', 'WoltLab/Wcf/Ui/Page/Search/Handler'], function(Dictionary _openSearch: function(event) { event.preventDefault(); - UiPageSearchHandler.open(_activePageId, _pageId.options[_pageId.selectedIndex].textContent, function(objectId) { + UiPageSearchHandler.open(_activePageId, _pageId.options[_pageId.selectedIndex].textContent.trim(), function(objectId) { _pageObjectId.value = objectId; _cache.set(_activePageId, objectId); }); 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 7ca5faa118..eccf34dcaa 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 @@ -118,7 +118,7 @@ define(['Dictionary', 'WoltLab/Wcf/Ui/Page/Search/Handler'], function(Dictionary _openSearch: function(event) { event.preventDefault(); - UiPageSearchHandler.open(_activePageId, _pageId.options[_pageId.selectedIndex].textContent, function(objectId) { + UiPageSearchHandler.open(_activePageId, _pageId.options[_pageId.selectedIndex].textContent.trim(), function(objectId) { _pageObjectId.value = objectId; _cache.set(_activePageId, objectId); });