Skip to content

Commit

Permalink
Fixes issue taitems#27 (not jumping to current day)
Browse files Browse the repository at this point in the history
  • Loading branch information
taitems committed Jul 30, 2012
1 parent dbc9d8f commit 363ae4d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,19 @@ <h2>
desc: "Deployment",
values: [{
from: "/Date(1336611200000)/",
to: "/Date(1336711200000)/",
to: "/Date(1338711200000)/",
label: "Deployment",
customClass: "ganttOrange"
}]
},{
name: " ",
desc: "Warranty Period",
values: [{
from: "/Date(1336611200000)/",
to: "/Date(1349711200000)/",
label: "Warranty Period",
customClass: "ganttOrange"
}]
}],
navigate: "scroll",
scale: "weeks",
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.fn.gantt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@
}, "fast", function () { core.repositionLabel(element); });
break;
case "now":
if (!element.scrollNavigation.canScroll) {
if (!element.scrollNavigation.canScroll || !$dataPanel.find(".today").length) {
return false;
}
var max_left = (dataPanelWidth - rightPanelWidth) * -1;
Expand Down
Loading

0 comments on commit 363ae4d

Please sign in to comment.