mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-12 20:42:37 +02:00
db7f42145e
Last hits will be combobox and layerswitcher.
18 lines
556 B
JavaScript
18 lines
556 B
JavaScript
iD.ui.confirm = function(selection) {
|
|
var modal = iD.ui.modal(selection);
|
|
modal.select('.modal').classed('modal-alert', true);
|
|
modal.select('.content')
|
|
.attr('class','modal-section fillD')
|
|
.append('div')
|
|
.attr('class', 'description');
|
|
var nochanges = modal.select('.content')
|
|
.append('button')
|
|
.attr('class','action centered')
|
|
.on('click.confirm', function() {
|
|
modal.remove();
|
|
});
|
|
nochanges.append('span').attr('class','label').text('Okay');
|
|
|
|
return modal;
|
|
};
|