diff options
| author | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-07-22 14:44:46 +0300 |
|---|---|---|
| committer | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-07-22 14:44:46 +0300 |
| commit | 8e115fb2d3ea7eb34a9c3a4307c32034b39d51b1 (patch) | |
| tree | 74ff4a2146af2e332fa131754cc90587f91d8fd6 /scripts/gant.js | |
| parent | fb95c775d0339c5bf180362c01c6cd433ee3ea97 (diff) | |
Save/UI/gantt changes
save now asks you if you're sure if you've build an unsaved graph
small changes to UI recommended by Yael
took out zooming bug in gantt
Diffstat (limited to 'scripts/gant.js')
| -rw-r--r-- | scripts/gant.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/gant.js b/scripts/gant.js index 4fe1d856..6747a244 100644 --- a/scripts/gant.js +++ b/scripts/gant.js @@ -6,6 +6,9 @@ function checkSwitch(checkswitch) { if (checkswitch.checked) { vis.selectAll(".gantt").remove(); $('.missingdates').fadeOut(300); + scrollValue = $('body').scrollLeft(); + console.log(scrollValue); + $('body').scrollLeft(0); graphstate = "GRAPH"; var fake_e = {}; @@ -16,6 +19,7 @@ function checkSwitch(checkswitch) { } else { $('.missingdates').fadeIn(300); + $('body').scrollLeft(scrollValue); graphstate = "GANTT"; var fake_e = {}; @@ -37,8 +41,6 @@ $('body').bind('DOMMouseScroll', function(e){ $('.overlay').hide(); }else{ $('.overlay').show(); - var left = $('body').offset().left; - $('.overlay').scrollLeft(left); } }else{ return false; @@ -52,6 +54,8 @@ $('body').bind('DOMMouseScroll', function(e){ $('.overlay').hide(); }else{ $('.overlay').show(); + var left = $('body').offset().left; + $('.overlay').scrollLeft(left); } }else{ return false; |
