Update label preview on init
authorAlexander Ebert <ebert@woltlab.com>
Mon, 16 Oct 2017 11:26:54 +0000 (13:26 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 16 Oct 2017 11:26:54 +0000 (13:26 +0200)
wcfsetup/install/files/js/WCF.Label.js

index 5075c437503c068f4b81584cf385a7a778195d80..dd00090699f7b4022aa244884f41b1082857f053 100644 (file)
@@ -39,6 +39,10 @@ WCF.Label.ACPList = Class.extend({
                                this._labelList.push($($input.next('span')));
                        }
                }, this));
+               
+               if (this._labelInput[0].value.length > 0) {
+                       this._keyPressed();
+               }
        },
        
        /**