mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 21:06:17 +00:00
mark JavaScript variables as local
Found by LGTM. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
0fb66fc91f
commit
2f6f48adec
1 changed files with 6 additions and 5 deletions
|
@ -950,10 +950,11 @@ function get_bookmarks_HTML(dive)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDiveCoorString(coordinates){
|
function getDiveCoorString(coordinates)
|
||||||
res = "";
|
{
|
||||||
lat = coordinates.lat;
|
var res = "";
|
||||||
lon = coordinates.lon;
|
var lat = coordinates.lat;
|
||||||
|
var lon = coordinates.lon;
|
||||||
res += float_to_deg(lat) + ' , ' + float_to_deg(lon);
|
res += float_to_deg(lat) + ' , ' + float_to_deg(lon);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -1043,7 +1044,7 @@ function remove_missing_photos()
|
||||||
var actually_removed = 0;
|
var actually_removed = 0;
|
||||||
|
|
||||||
console.log(missing_ids.length);
|
console.log(missing_ids.length);
|
||||||
for(i = 0; i < missing_ids.length; i++){
|
for(var i = 0; i < missing_ids.length; i++){
|
||||||
dive.photos.splice(missing_ids[i] - actually_removed, 1);
|
dive.photos.splice(missing_ids[i] - actually_removed, 1);
|
||||||
actually_removed++;
|
actually_removed++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue