summaryrefslogtreecommitdiffstats
path: root/htdocs/cropper
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-08-21 16:39:54 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-08-21 16:39:54 +0200
commit4909ade650a31797ee4d305565a91061e8a5b812 (patch)
treef2476c79a444b6ee504414264beab606e8ae9420 /htdocs/cropper
parentebe189c85bfedaaf70e5657c8334bf7e0b750a99 (diff)
downloadsmokeping-4909ade650a31797ee4d305565a91061e8a5b812.tar.gz
smokeping-4909ade650a31797ee4d305565a91061e8a5b812.tar.xz
added some extra vars
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();