summaryrefslogtreecommitdiff
path: root/scripts/gant.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-08-10 17:30:30 +0300
committerAlon Levy <alon@pobox.com>2014-08-10 17:32:56 +0300
commitc8c4edc2fd30af8ef4b67d56c3c65974ff25e37e (patch)
tree5b0a849a29e59062226612c5864cb3fdff7a0a55 /scripts/gant.js
parent5420cd2885f42d6d57e601d378069ac1e400db93 (diff)
more 'use strict' and fallout handling
Just defining some variables instead of them becoming properties on the global object Some whitespace fixes too.
Diffstat (limited to 'scripts/gant.js')
-rw-r--r--scripts/gant.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/gant.js b/scripts/gant.js
index 9b7fed4b..a89f9035 100644
--- a/scripts/gant.js
+++ b/scripts/gant.js
@@ -1,3 +1,4 @@
+"use strict"
function checkSwitch(checkswitch) {
@@ -26,7 +27,7 @@ function checkSwitch(checkswitch) {
$('body').scrollLeft(scrollValue);
graphstate = "GANTT";
-
+
graph.update();
$('.status').fadeIn(600);
@@ -95,7 +96,7 @@ function initAxis() {
///update interval
var timeDiff = Math.abs(max.getTime() - min.getTime());
var diffDays = timeDiff / (1000 * 3600 * 24);
- w=Math.round(diffDays*15-100);
+ var w = Math.round(diffDays * 15 - 100);
graphinterval = w / diffDays;
@@ -130,7 +131,7 @@ function initAxis() {
return i * row_height + paddingTop + bar_start_offset;
}
- labelY = function (i) {
+ var labelY = function (i) {
return i * row_height + paddingTop + bar_start_offset + 13;
}