Fix username input

This commit is contained in:
Mattias Erming 2014-11-06 12:00:14 +00:00
parent 4d525eba88
commit f6636ad028
2 changed files with 5 additions and 5 deletions

View File

@ -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">

View File

@ -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([