mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-11-05 07:03:24 +01:00
Fix: boxes are actually removed when they don't respond
This commit is contained in:
parent
8465d61845
commit
81a80da7c5
@ -99,6 +99,7 @@ function checkBox(box) {
|
||||
updateIntro();
|
||||
}
|
||||
}).fail(function() {
|
||||
//console.log("box not alive: "+box.wifiboxid);
|
||||
numBoxesChecking--;
|
||||
removeBox(box);
|
||||
updateIntro();
|
||||
@ -115,7 +116,8 @@ function boxExists(localip){
|
||||
return $list.find("a[id|='"+localip+"']").length > 0;
|
||||
}
|
||||
function removeBox(box) {
|
||||
$list.remove("a[id|='"+box.localip+"']");
|
||||
var $element = $list.find("a[id|='"+box.localip+"']");
|
||||
$element.remove();
|
||||
}
|
||||
|
||||
function updateIntro() {
|
||||
|
Loading…
Reference in New Issue
Block a user