Revision 308d836a
Il faut utiliser l'accesseur, qui traite correctement le cas où start=null (fin du graphe) que l'ancien code.
Corrige le problème rapporté par Laurent dans #376.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5681 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/public/js/graph.js | ||
---|---|---|
138 | 138 |
image: app_path + 'images/previous.png', |
139 | 139 |
tooltip: _("Previous section"), |
140 | 140 |
onClick: function() { |
141 |
this.options.start -= this.options.duration; |
|
141 |
this.options.start = |
|
142 |
this.getStartTime() - |
|
143 |
this.options.duration; |
|
142 | 144 |
this.updateGraph(); |
143 | 145 |
}.bind(this) |
144 | 146 |
}), |
... | ... | |
146 | 148 |
image: app_path + 'images/next.png', |
147 | 149 |
tooltip: _("Next section"), |
148 | 150 |
onClick: function() { |
149 |
this.options.start += this.options.duration; |
|
151 |
this.options.start = |
|
152 |
this.getStartTime() + |
|
153 |
this.options.duration; |
|
150 | 154 |
this.updateGraph(); |
151 | 155 |
}.bind(this) |
152 | 156 |
}), |
Also available in: Unified diff