From 876547b1ea81a7cfc4afdb032acfa1d6ef4a78cc Mon Sep 17 00:00:00 2001 From: Greg Guthe Date: Mon, 9 Sep 2013 19:22:50 -0400 Subject: [PATCH] Fix saving comments --- js/id/ui/commit.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/id/ui/commit.js b/js/id/ui/commit.js index 2c11424d6..0968cabda 100644 --- a/js/id/ui/commit.js +++ b/js/id/ui/commit.js @@ -90,7 +90,12 @@ iD.ui.Commit = function(context) { // Confirm Button var saveButton = saveSection.append('button') - .attr('class', 'action col3 button'); + .attr('class', 'action col3 button') + .on('click.save', function() { + event.save({ + comment: commentField.node().value + }); + }); saveButton.append('span') .attr('class', 'label')