Skip to content

Commit 251b46a

Browse files
committed
fix issue where spinner can become vehicle
1 parent 09886d9 commit 251b46a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/sondehub.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,8 @@ function clean_refresh(text, force, history_step) {
833833

834834
// add loading spinner in the vehicle list
835835
$('#main .empty').parent().remove();
836-
$("#main .portrait,#main .landscape").append(
837-
'<div class="row vehicle'+elm_uuid+'"><div class="header empty">' +
836+
$(".scrollwrapper").append(
837+
'<div class="row" id="spinner"><div class="header empty">' +
838838
'<img style="width:90px;height:30px" src="img/hab-spinner.gif"/></div></div>'
839839
);
840840
listScroll.refresh();
@@ -5074,7 +5074,7 @@ function update(response, none) {
50745074
},
50755075

50765076
};
5077-
5077+
document.getElementById("spinner")?.remove();
50785078
ctx_init.run(ctx_init);
50795079
sub_to_nearby_sondes();
50805080
}

0 commit comments

Comments
 (0)