mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
Add confirm
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
iD.confirm = function(message) {
|
||||
var modal = iD.modal();
|
||||
modal.select('.modal').classed('modal-alert', true);
|
||||
modal.select('.content')
|
||||
.append('p').attr('class', 'description');
|
||||
modal.select('.content')
|
||||
.append('button')
|
||||
.text('OK')
|
||||
.on('click', function() {
|
||||
modal.remove();
|
||||
});
|
||||
|
||||
return modal;
|
||||
};
|
||||
Reference in New Issue
Block a user