Save commit message on keyup

Refs: #1775
This commit is contained in:
Greg Guthe
2013-09-05 00:22:51 -04:00
parent 36eb0ecd94
commit ba9745a6eb

View File

@@ -52,7 +52,10 @@ iD.ui.Commit = function(context) {
var commentField = commentSection.append('textarea')
.attr('placeholder', t('commit.description_placeholder'))
.property('value', context.storage('comment') || '');
.property('value', context.storage('comment') || '')
.on('keyup.save', function () {
context.storage('comment', this.value);
});
commentField.node().select();