diff --git a/js/id/ui/commit.js b/js/id/ui/commit.js index 7da066b03..9eeb63e06 100644 --- a/js/id/ui/commit.js +++ b/js/id/ui/commit.js @@ -31,7 +31,13 @@ iD.ui.Commit = function(context) { function changesLength(d) { return changes[d].length; } var header = selection.append('div') - .attr('class', 'header'); + .attr('class', 'header fillL'); + + header.append('button') + .attr('class', 'fr') + .append('span') + .attr('class', 'icon close') + .on('click', event.cancel); header.append('h3') .text(t('commit.title')); diff --git a/js/id/ui/success.js b/js/id/ui/success.js index 5e5c02e4e..b35306834 100644 --- a/js/id/ui/success.js +++ b/js/id/ui/success.js @@ -7,7 +7,13 @@ iD.ui.Success = function(context) { ' ' + context.connection().changesetURL(changeset.id); var header = selection.append('div') - .attr('class', 'header'); + .attr('class', 'header fillL'); + + header.append('button') + .attr('class', 'fr') + .append('span') + .attr('class', 'icon close') + .on('click', event.cancel); header.append('h3') .text(t('just_edited'));