summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorGravatar Rolf Eike Beer <eike@sf-mail.de>2019-03-15 21:59:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-04 15:02:42 -0700
commitc7e9825fc6c327293c4b6beefc1feec512dd0bcb (patch)
tree0600c1da145577d6e346ab55e20cd404a4eaaa86 /theme
parent30ea5aa9f63297db6b46985d9e1b0b5d6472a01a (diff)
downloadsubsurface-c7e9825fc6c327293c4b6beefc1feec512dd0bcb.tar.gz
mark JavaScript variables as local
Found by LGTM. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'theme')
-rw-r--r--theme/list_lib.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index 409229a91..1694e81cd 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -950,10 +950,11 @@ function get_bookmarks_HTML(dive)
return result;
}
-function getDiveCoorString(coordinates){
- res = "";
- lat = coordinates.lat;
- lon = coordinates.lon;
+function getDiveCoorString(coordinates)
+{
+ var res = "";
+ var lat = coordinates.lat;
+ var lon = coordinates.lon;
res += float_to_deg(lat) + ' , ' + float_to_deg(lon);
return res;
}
@@ -1043,7 +1044,7 @@ function remove_missing_photos()
var actually_removed = 0;
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);
actually_removed++;
}