mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
12 lines
371 B
JavaScript
12 lines
371 B
JavaScript
iD.ui.loading = function(message) {
|
|
var modal = iD.ui.modal();
|
|
|
|
var loadertext = modal.select('.content')
|
|
.classed('loading-modal', true)
|
|
.append('div').classed('modal-section',true);
|
|
loadertext.append('img').attr('class','loader').attr('src', '/img/loader.gif');
|
|
loadertext.append('h3').text(message || '');
|
|
|
|
return modal;
|
|
};
|