Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix issue where spinner can become vehicle
  • Loading branch information
xssfox committed Nov 30, 2024
commit 251b46abff8d01966df7942d2d4fd4abf7c064ce
6 changes: 3 additions & 3 deletions js/sondehub.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@ function clean_refresh(text, force, history_step) {

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

};

document.getElementById("spinner")?.remove();
ctx_init.run(ctx_init);
sub_to_nearby_sondes();
}
Expand Down