summaryrefslogtreecommitdiffstats
path: root/htdocs/cropper
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/cropper')
-rw-r--r--htdocs/cropper/smokeping-cropper.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/htdocs/cropper/smokeping-cropper.js b/htdocs/cropper/smokeping-cropper.js
index 8129801..572357c 100644
--- a/htdocs/cropper/smokeping-cropper.js
+++ b/htdocs/cropper/smokeping-cropper.js
@@ -64,7 +64,6 @@ function JSToISODate(mydate) {
// example with minimum dimensions
var myCropper;
-
// will be started by modified iSelect (StopApply Function)
var StartDateString = 0;
var EndDateString = 0;
@@ -88,12 +87,12 @@ function changeRRDImage(coords,dimensions){
var myRawTarget = myURLObj.getUrlParameterValue("target");
var myParsedStartDate = ISODateToJS(myRawStartDate);
- myParsedStartEpoch = Math.floor(myParsedStartDate.getTime()/1000.0);
+ var myParsedStartEpoch = Math.floor(myParsedStartDate.getTime()/1000.0);
var myParsedStopDate = ISODateToJS(myRawStopDate);
- myParsedStopEpoch = Math.floor(myParsedStopDate.getTime()/1000.0);
+ var myParsedStopEpoch = Math.floor(myParsedStopDate.getTime()/1000.0);
- myParsedDivEpoch = myParsedStopEpoch - myParsedStartEpoch;
+ var myParsedDivEpoch = myParsedStopEpoch - myParsedStartEpoch;
var mySerialDate = new Date();
var mySerial = mySerialDate.getTime();