From 7aafa8a95640254c7590fb58fc72242b58061bb5 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Wed, 5 Nov 2014 23:19:29 +0100 Subject: [PATCH] Fix username input --- client/index.html | 8 ++++---- client/js/shout.js | 5 +++++ defaults/config.js | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/client/index.html b/client/index.html index 849014bd..f52cf4f0 100644 --- a/client/index.html +++ b/client/index.html @@ -128,18 +128,18 @@
- +
- +
- +
- +
diff --git a/client/js/shout.js b/client/js/shout.js index f5749269..685d74b1 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -685,6 +685,11 @@ $(function() { event, values ); }); + + forms.on("input", "#nick", function() { + var nick = $(this).val(); + $("#username").val(nick); + }); Mousetrap.bind([ "command+up", diff --git a/defaults/config.js b/defaults/config.js index c289e036..7856c7b5 100644 --- a/defaults/config.js +++ b/defaults/config.js @@ -150,9 +150,9 @@ module.exports = { // Username // // @type string - // @default "" + // @default "shout-user" // - username: "", + username: "shout-user", // // Real Name