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