Remove commit message save on click

Clicking the save button will blur the commit message textarea and
trigger a save.
This commit is contained in:
Greg Guthe
2013-09-05 21:03:30 -04:00
parent b27ed806a9
commit 2d5ec0d77f
+1 -8
View File
@@ -90,14 +90,7 @@ iD.ui.Commit = function(context) {
// Confirm Button
var saveButton = saveSection.append('button')
.attr('class', 'action col3 button')
.on('click.save', function() {
var comment = commentField.node().value;
localStorage.comment = comment;
event.save({
comment: comment
});
});
.attr('class', 'action col3 button');
saveButton.append('span')
.attr('class', 'label')