Commit e430314e authored by Pascal Hartig's avatar Pascal Hartig

Backbone: Reset input on revert

Fix #896, using solution by @shaci
parent 6533ae6b
......@@ -121,6 +121,8 @@ var app = app || {};
revertOnEscape: function (e) {
if (e.which === ESC_KEY) {
this.$el.removeClass('editing');
// Also reset the hidden input back to the original value.
this.$input.val(this.model.get('title'));
}
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment