Closed nerone closed 10 years ago
Thanks, this bug is fixed now (fixed version is not yet released).
hey,, im facing the same issue. when will the fixed version release?
Good point, will do that soon.
thanks :)
We've just released Timeline v2.9.0. Enjoy!
thanks mate.. cheers !!
hi.. i just tested it and it seems that the bug is still persistent. Im using a json data string to plot the data on the timeline. here is my code to add the listener to the timeline (please pardon the formatting) :
var timeline = new links.Timeline(document.getElementById('myDivHere'));
links.events.addListener(timeline,'onchanged', function(){
var selected = timeline.getSelection();
if (selected.length) {
if (selected[0].row != undefined) {
var row = selected[0].row;
if (row != undefined) {
timeline.cancelChange();
}
}
}
});
Please check.
I think your 'onchanged' callback is never fired, the event is called 'changed', like:
links.events.addListener(timeline, 'changed', function(){
// ...
}
Trying to get data table using
getData()
method withinchanged
event after callingcancelChange()
, keeps item’s new start and end date values, but not the original ones.