Adding a space before newly created badges
authorAlexander Ebert <ebert@woltlab.com>
Sun, 14 Dec 2014 01:53:03 +0000 (02:53 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 14 Dec 2014 01:53:03 +0000 (02:53 +0100)
wcfsetup/install/files/js/WCF.User.js

index ed31bb944fe7cf4232f44f5792f5d19a370ba515..f598944bcd1553c9ff6368568a3a2a58a707e7c9 100644 (file)
@@ -377,6 +377,7 @@ WCF.User.Panel.Abstract = Class.extend({
                if (count) {
                        if (this._badge === null) {
                                this._badge = $('<span class="badge badgeInverse" />').appendTo(this._triggerElement.children('a'));
+                               this._badge.before(' ');
                        }
                        
                        this._badge.text(count);