diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/wittle/puzzles/solve.js.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/wittle/puzzles/solve.js.erb b/app/views/wittle/puzzles/solve.js.erb index 12c2350..2aa22e9 100644 --- a/app/views/wittle/puzzles/solve.js.erb +++ b/app/views/wittle/puzzles/solve.js.erb | |||
@@ -1 +1,5 @@ | |||
1 | $("#submission-form").html('<%= escape_javascript(render partial: "submission") %>'); | 1 | $("#submission-form").html('<%= escape_javascript(render partial: "submission") %>'); |
2 | $("#submission-form #name").val(window.settings.player_name) | ||
3 | $("#submission-form #name").on("change", function() { | ||
4 | window.settings.player_name = this.value | ||
5 | }) | ||