Trim title of page object look up dialog
authorMatthias Schmidt <gravatronics@live.com>
Sun, 31 Jul 2016 11:02:25 +0000 (13:02 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 31 Jul 2016 11:02:25 +0000 (13:02 +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 0a07f3ec2806192cb8559afcf1e594d8959f9117..14297e58527612fbf987bf7a9638edbbc249a4f1 100644 (file)
@@ -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);
                        });
index 7ca5faa1188f4431f425dfea547fabb0f835500d..eccf34dcaaad02d5c830045fb9c361270aea22bc 100644 (file)
@@ -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);
                        });