diff --git a/js/GUI.Utils.js b/js/GUI.Utils.js index 09ef55d..e4ad212 100644 --- a/js/GUI.Utils.js +++ b/js/GUI.Utils.js @@ -100,9 +100,9 @@ function timeformat(secs) { m = m.floor(); s = s - (m * 60 ); s = Math.round(s,0) - console.log("Hours :"+ h); - console.log("Minutes :"+ m); - console.log("Seconds :"+ s); - console.log("Input :"+ secs); + // console.log("Hours :"+ h); + // console.log("Minutes :"+ m); + // console.log("Seconds :"+ s); + // console.log("Input :"+ secs); return h+":"+(m < 10 ? '0'+m : m)+":"+(s < 10 ? '0'+s : s); //zero padding on minutes and seconds } diff --git a/js/mapviewgl.js b/js/mapviewgl.js index 62a2887..6b4d953 100644 --- a/js/mapviewgl.js +++ b/js/mapviewgl.js @@ -161,7 +161,9 @@ function onCanvasClick( event ) { INTERSECTED = intersects[ 0 ].object; // console.log( INTERSECTED.name ); - document.getElementById(lastInputBox).value = INTERSECTED.name; + if (lastInputBox) { + document.getElementById(lastInputBox).value = INTERSECTED.name; + } }