From: Alexander Ebert Date: Thu, 16 Jan 2020 17:23:58 +0000 (+0100) Subject: Trim the usernames reported by `Ui/ItemList`. X-Git-Tag: 5.2.2~51 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=687b606da3a11e5253368ea52869ec9d3cd2932d;p=GitHub%2FWoltLab%2FWCF.git Trim the usernames reported by `Ui/ItemList`. --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js index 02485596e0..d7895fda86 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js @@ -189,7 +189,7 @@ define(['Core', 'Dictionary', 'Language', 'Dom/Traverse', 'EventKey', 'WoltLabSu elBySelAll('.item > span', data.list, function(span) { values.push({ objectId: ~~elData(span, 'object-id'), - value: span.textContent, + value: span.textContent.trim(), type: elData(span, 'type') }); });