mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-20 01:53:28 +00:00
18 lines
538 B
JavaScript
18 lines
538 B
JavaScript
iD.ui.confirm = function() {
|
|
var modal = iD.ui.modal();
|
|
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;
|
|
};
|