Files
iD/js/id/ui/loading.js
Tom MacWright e34ba10ade Allow the beginning node of a way be an intersection with another way.
This needs to be ported to drawway and addarea. Fixes #137
2012-11-28 18:23:44 -05:00

17 lines
408 B
JavaScript

iD.loading = function(message) {
var loading = d3.select('div.loading');
if (loading.empty()) loading = d3.select(document.body)
.append('div').attr('class', 'loading shaded');
loading.append('div')
.attr('class', 'modal loading-pane')
.text(message || '');
var l = {};
l.remove = function() {
d3.select('div.loading').remove();
};
return l;
};