summaryrefslogtreecommitdiff
path: root/scripts/gant.js
diff options
context:
space:
mode:
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;
}