Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a bug in the input, made it work on Enter, added max-length.

  • Loading branch information...
commit 4b0eca70c1f0298ac54210a67d9fb6bc23804c64 1 parent ebbdf3f
@dwillie dwillie authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  index.html
  2. +1 −1  js/views.js
View
2  index.html
@@ -30,7 +30,7 @@
<a class="button hidden" href="#" id="continue">Continue</a>
<span id="input-box">
<label>Waiting for input</label>
- <input type="text" id="input"/>
+ <input type="text" id="input" maxlength="1"/>
</span>
</div>
<div contenteditable="true" id="source">+++++ +++++ initialize counter (cell #0) to 10
View
2  js/views.js
@@ -58,7 +58,7 @@ var InterpreterView = Backbone.View.extend({
"click #continue": "continue",
"click #stop": "stop",
"keyup #source": "sourceChange",
- "keyup #input": "recieveInput"
+ "change #input": "recieveInput"
},
render: function () {
this.input = this.$el.find("#input");
Please sign in to comment.
Something went wrong with that request. Please try again.