Add missing space between icon and text of media list's upload button
authorMatthias Schmidt <gravatronics@live.com>
Wed, 29 Nov 2017 17:56:06 +0000 (18:56 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 29 Nov 2017 17:56:06 +0000 (18:56 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js

index b9f4d48239f4c5b3f46b52d1cb5d1ebe15705e58..3e1e6650e5704872b43aca05b8f77a98a1382439 100644 (file)
@@ -47,9 +47,14 @@ define(
                _createButton: function() {
                        MediaListUpload._super.prototype._createButton.call(this);
                        
+                       var span = elBySel('span', this._button);
+                       
+                       var space = document.createTextNode(' ');
+                       DomUtil.prepend(space, span);
+                       
                        var icon = elCreate('span');
                        icon.className = 'icon icon16 fa-upload';
-                       DomUtil.prepend(icon, elBySel('span', this._button));
+                       DomUtil.prepend(icon, span);
                },
                
                /**