aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.js b/main.js
index 9afd3e7..f16e08b 100644
--- a/main.js
+++ b/main.js
@@ -3756,7 +3756,10 @@ const [vectorLayers, featureOverlayLayer] = (function() {
if (def !== undefined && def.popover !== undefined) {
/* skip layers which didn't opt-in for popover */
if (!fetch_body.length) {
- document.body.classList.add('progress');
+ document.body.classList.add('inprogress');
+ if (popover !== null && popover.tip !== null) {
+ popover.tip.classList.add('inprogress');
+ }
}
fetch_body.push({
layer_group: layerGroup,
@@ -3906,10 +3909,11 @@ const [vectorLayers, featureOverlayLayer] = (function() {
else if (popover.tip.classList.contains('popover-detached')) {
/* update existing detached mode popover */
refreshPopover();
+ popover.tip.classList.remove('inprogress');
}
})
.finally(function() {
- document.body.classList.remove('progress');
+ document.body.classList.remove('inprogress');
});
});
}());