Trim the usernames reported by `Ui/ItemList`.
authorAlexander Ebert <ebert@woltlab.com>
Thu, 16 Jan 2020 17:23:58 +0000 (18:23 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 16 Jan 2020 17:23:58 +0000 (18:23 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js

index 02485596e039ebd6070d7a1c65b31653fdf615fd..d7895fda862c46534d7b77839e66494a0afbe30f 100644 (file)
@@ -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')
                                });
                        });