mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Cleanup: deal with lgtm.com Alerts
Small, obvious fixes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d04a018020
commit
0a25b32ca0
1 changed files with 1 additions and 3 deletions
|
@ -174,7 +174,6 @@ function setNumberOfDives(e)
|
||||||
{
|
{
|
||||||
var value = e.options[e.selectedIndex].value;
|
var value = e.options[e.selectedIndex].value;
|
||||||
sizeofpage = parseInt(value, 10);
|
sizeofpage = parseInt(value, 10);
|
||||||
var end = start + sizeofpage - 1;
|
|
||||||
viewInPage();
|
viewInPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -682,7 +681,6 @@ var statsShows;
|
||||||
*/
|
*/
|
||||||
function toggleStats()
|
function toggleStats()
|
||||||
{
|
{
|
||||||
var stats_button = document.getElementById('stats_button');
|
|
||||||
if (statsShows) {
|
if (statsShows) {
|
||||||
statsShows = false;
|
statsShows = false;
|
||||||
document.getElementById('diveListPanel').style.display = 'block';
|
document.getElementById('diveListPanel').style.display = 'block';
|
||||||
|
@ -1182,7 +1180,7 @@ function int_to_time(n)
|
||||||
|
|
||||||
function float_to_deg(flt){
|
function float_to_deg(flt){
|
||||||
var deg = 0 | flt;
|
var deg = 0 | flt;
|
||||||
flt = (flt < 0 ? flt =- flt : flt);
|
flt = (flt < 0 ? - flt : flt);
|
||||||
var min = 0 | flt % 1 * 60;
|
var min = 0 | flt % 1 * 60;
|
||||||
var sec = (0 | flt * 60 % 1 * 6000) / 100;
|
var sec = (0 | flt * 60 % 1 * 6000) / 100;
|
||||||
return deg + "° " + min + "' " + sec + "\"";
|
return deg + "° " + min + "' " + sec + "\"";
|
||||||
|
|
Loading…
Reference in a new issue