mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
20 lines
418 B
JavaScript
20 lines
418 B
JavaScript
iD.ui.flash = function() {
|
|
var modal = iD.ui.modal();
|
|
|
|
modal.select('.modal').classed('modal-alert', true);
|
|
|
|
modal.select('.content')
|
|
.classed('modal-section', true)
|
|
.append('div')
|
|
.attr('class', 'description');
|
|
|
|
modal.on('click.flash', function() { modal.remove(); });
|
|
|
|
d3.timer(function() {
|
|
modal.remove();
|
|
return true;
|
|
}, 1000);
|
|
|
|
return modal;
|
|
};
|