Project

General

Profile

Revision 308d836a

ID308d836a345706d12b9dbdca39b1642f20053d15
Parent a128e1c2
Child e4dedc04

Added by Francois POIROTTE over 13 years ago

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

View differences:

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