From 405fc899a92015f0502dd43e725f9c05fbd1375d Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 29 May 2013 19:11:49 -0700 Subject: [PATCH] Restore background color and close button to save headers --- js/id/ui/commit.js | 8 +++++++- js/id/ui/success.js | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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'));