Fix username input
This commit is contained in:
parent
4d525eba88
commit
f6636ad028
@ -128,14 +128,14 @@
|
||||
<label>Nick</label>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<input class="input" id="nick" name="nick" value="<%= defaults.nick %>">
|
||||
<input class="input nick" name="nick" value="<%= defaults.nick %>">
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-sm-3">
|
||||
<label title="* Optional">Username</label>
|
||||
<label>Username</label>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<input class="input" id="username" name="username" value="<%= defaults.username %>">
|
||||
<input class="input username" name="username" value="<%= defaults.username %>">
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-sm-3">
|
||||
|
@ -686,9 +686,9 @@ $(function() {
|
||||
);
|
||||
});
|
||||
|
||||
forms.on("input", "#nick", function() {
|
||||
forms.on("input", ".nick", function() {
|
||||
var nick = $(this).val();
|
||||
$("#username").val(nick);
|
||||
forms.find(".username").val(nick);
|
||||
});
|
||||
|
||||
Mousetrap.bind([
|
||||
|
Loading…
Reference in New Issue
Block a user