Add confirm

This commit is contained in:
Tom MacWright
2012-12-05 17:20:18 -05:00
parent f0c45034bd
commit 50dd5063a5
+14
View File
@@ -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;
};