Improved usability in lost password form
authorMarcel Werk <burntime@woltlab.com>
Sat, 15 Oct 2016 14:27:52 +0000 (16:27 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 15 Oct 2016 14:27:59 +0000 (16:27 +0200)
wcfsetup/install/files/js/WCF.User.js

index ea96f1dacea713832d424204d1e2274495913649..bac8b6a67d547022ffb3f7c0c43970d2720ccc0b 100644 (file)
@@ -1489,6 +1489,7 @@ WCF.User.Registration.LostPassword = Class.extend({
                else {
                        this._username.disable();
                        this._username.parents('dl:eq(0)').addClass('disabled');
+                       this._username.val('');
                }
        },
        
@@ -1503,6 +1504,7 @@ WCF.User.Registration.LostPassword = Class.extend({
                else {
                        this._email.disable();
                        this._email.parents('dl:eq(0)').addClass('disabled');
+                       this._email.val('');
                }
        }
 });