From 2da7687e701f3ae0ac9b742d50818b26dd232a0d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 31 Jul 2016 13:02:25 +0200 Subject: [PATCH] Trim title of page object look up dialog --- 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 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); }); -- 2.20.1