mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
refining modals.
This commit is contained in:
+26
-26
@@ -7,7 +7,32 @@ iD.commit = function() {
|
||||
body = selection.append('div').attr('class', 'body');
|
||||
|
||||
header.append('h2').text('Upload Changes to OpenStreetMap');
|
||||
header.append('p').text('the changes you upload will be visible on all maps using OpenStreetMap data');
|
||||
header.append('p').text('The changes you upload will be visible on all maps that use OpenStreetMap data.');
|
||||
|
||||
body.append('div').attr('class','pad1')
|
||||
.append('textarea')
|
||||
.attr('class', 'changeset-comment pad1')
|
||||
.attr('placeholder', 'Brief Description of your contributions');
|
||||
|
||||
var buttonwrap = body.append('div')
|
||||
.attr('class', 'buttons');
|
||||
|
||||
var savebutton = buttonwrap.append('button')
|
||||
.attr('class', 'action wide')
|
||||
.on('click.save', function() {
|
||||
event.save({
|
||||
comment: d3.select('textarea.changeset-comment').node().value
|
||||
});
|
||||
});
|
||||
savebutton.append('span').attr('class','icon save icon-pre-text')
|
||||
savebutton.append('span').attr('class','label').text('Upload')
|
||||
var cancelbutton = buttonwrap.append('button')
|
||||
.attr('class', 'cancel wide')
|
||||
.on('click.cancel', function() {
|
||||
event.cancel();
|
||||
});
|
||||
cancelbutton.append('span').attr('class','icon close icon-pre-text')
|
||||
cancelbutton.append('span').attr('class','label').text('Cancel')
|
||||
|
||||
var section = body.selectAll('div.commit-section')
|
||||
.data(['modified', 'deleted', 'created'].filter(function(d) {
|
||||
@@ -34,31 +59,6 @@ iD.commit = function() {
|
||||
return iD.util.friendlyName(d);
|
||||
})
|
||||
.attr('title', iD.util.tagText);
|
||||
|
||||
body.append('div').attr('class','pad1')
|
||||
.append('textarea')
|
||||
.attr('class', 'changeset-comment pad1')
|
||||
.attr('placeholder', 'Brief Description');
|
||||
|
||||
var buttonwrap = body.append('div')
|
||||
.attr('class', 'buttons');
|
||||
|
||||
var savebutton = buttonwrap.append('button')
|
||||
.attr('class', 'action wide')
|
||||
.on('click.save', function() {
|
||||
event.save({
|
||||
comment: d3.select('textarea.changeset-comment').node().value
|
||||
});
|
||||
});
|
||||
savebutton.append('span').attr('class','icon save icon-pre-text')
|
||||
savebutton.append('span').attr('class','label').text('Save')
|
||||
var cancelbutton = buttonwrap.append('button')
|
||||
.attr('class', 'cancel wide')
|
||||
.on('click.cancel', function() {
|
||||
event.cancel();
|
||||
});
|
||||
cancelbutton.append('span').attr('class','icon close icon-pre-text')
|
||||
cancelbutton.append('span').attr('class','label').text('Cancel')
|
||||
}
|
||||
|
||||
return d3.rebind(commit, event, 'on');
|
||||
|
||||
Reference in New Issue
Block a user