remove user location if filtered ssid list is empty
This commit is contained in:
parent
5ee550a4f2
commit
439b00ed47
1 changed files with 4 additions and 3 deletions
|
@ -1259,9 +1259,6 @@ c3nav = {
|
|||
if (now-2000 < c3nav._last_wifi_scan) return;
|
||||
|
||||
data = JSON.parse(data);
|
||||
if (!data.length) {
|
||||
c3nav._set_user_location(null);
|
||||
}
|
||||
|
||||
if (c3nav.ssids) {
|
||||
var newdata = [];
|
||||
|
@ -1273,6 +1270,10 @@ c3nav = {
|
|||
data = newdata;
|
||||
}
|
||||
|
||||
if (!data.length) {
|
||||
c3nav._set_user_location(null);
|
||||
}
|
||||
|
||||
$.post({
|
||||
url: '/api/routing/locate/',
|
||||
data: JSON.stringify(data),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue