mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-01 17:03:42 +00:00
21 lines
520 B
JavaScript
21 lines
520 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-white.gif');
|
|
|
|
loadertext.append('h3')
|
|
.text(message || '');
|
|
|
|
modal.select('button.close')
|
|
.attr('class', 'hide');
|
|
|
|
return modal;
|
|
};
|