Fix username input
This commit is contained in:
parent
a88b06bc27
commit
7aafa8a956
|
@ -128,18 +128,18 @@
|
|||
<label>Nick</label>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<input class="input" name="nick" value="<%= defaults.nick %>">
|
||||
<input class="input" id="nick" name="nick" value="<%= defaults.nick %>">
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-sm-3">
|
||||
<label>Username</label>
|
||||
<label title="* Optional">Username</label>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<input class="input" name="nick" value="<%= defaults.username %>">
|
||||
<input class="input" id="username" name="username" value="<%= defaults.username %>">
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-sm-3">
|
||||
<label>Real Name</label>
|
||||
<label>Real name</label>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input class="input" name="realname" class="input" value="<%= defaults.realname %>">
|
||||
|
|
|
@ -685,6 +685,11 @@ $(function() {
|
|||
event, values
|
||||
);
|
||||
});
|
||||
|
||||
forms.on("input", "#nick", function() {
|
||||
var nick = $(this).val();
|
||||
$("#username").val(nick);
|
||||
});
|
||||
|
||||
Mousetrap.bind([
|
||||
"command+up",
|
||||
|
|
|
@ -150,9 +150,9 @@ module.exports = {
|
|||
// Username
|
||||
//
|
||||
// @type string
|
||||
// @default ""
|
||||
// @default "shout-user"
|
||||
//
|
||||
username: "",
|
||||
username: "shout-user",
|
||||
|
||||
//
|
||||
// Real Name
|
||||
|
|
Loading…
Reference in New Issue