mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-20 04:33:11 +00:00
15 lines
465 B
JavaScript
15 lines
465 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 || '');
|
|
|
|
modal.select('button.close').attr('class','hide');
|
|
|
|
return modal;
|
|
};
|