##// END OF EJS Templates
Ignore the event object for handleTextChange
Gordon Ball -
Show More
@@ -165,12 +165,12 define([
165 handleKeyDown: function(e) {
165 handleKeyDown: function(e) {
166 if (e.keyCode == 13) {
166 if (e.keyCode == 13) {
167 e.preventDefault();
167 e.preventDefault();
168 this.handleTextChange(e);
168 this.handleTextChange();
169 }
169 }
170 },
170 },
171
171
172 handleTextChange: function(e) {
172 handleTextChange: function() {
173 var text = $(e.target).text().trim();
173 var text = this.$readout.text();
174 var value = this._validate_text_input(text);
174 var value = this._validate_text_input(text);
175 if (isNaN(value)) {
175 if (isNaN(value)) {
176 this.$readout.text(this.model.get('value'));
176 this.$readout.text(this.model.get('value'));
General Comments 0
You need to be logged in to leave comments. Login now