diff --git a/source/js/VMM.Timeline.js b/source/js/VMM.Timeline.js index 7d2fb8c39..c075ccb59 100755 --- a/source/js/VMM.Timeline.js +++ b/source/js/VMM.Timeline.js @@ -449,7 +449,12 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { slider.setSlide(0); timenav.setMarker(0, config.ease,config.duration); }; - + //call this function before loading timeline with new data + this.reset = function() { + config.current_slide = 0; + slider.setSlide(0); + timenav.setMarker(0, config.ease,config.duration); + } /* DATA ================================================== */ function getData(url) { @@ -719,4 +724,4 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { VMM.Timeline.Config = {}; -}; \ No newline at end of file +};