timeglider/jquery_widget — Issue #40: Trouble instantiating multiple instances of timeline widget
Author: framejk
Created: 2012-03-08 17:52:57+00:00
State: open

Trying to have multiple timeline widgets loaded into a single page. The last timeload will load properly, but any before will not properly load and render. Firebug shows error: TG_TimelineView.js (line 1392)

this.getTickSeconds[tickUnit] is not a function
pack.seconds = this.getTickSeconds[tickUnit](pack.serial);

var tg1 = $("#60s").timeline({
"min_zoom":37,
"max_zoom":37,
"show_centerline":true,
"data_source":"timeglider/json_tests/js_history.json",
"show_footer":false,
"display_zoom_level": false,
"constrain_to_data": true,
'icon_folder': 'timeglider/js/timeglider/icons/',
"event_overflow":'hide'
});
var tg2 = $("#70s").timeline({
"min_zoom":37,
"max_zoom":37,
"show_centerline":true,
"data_source":"timeglider/json_tests/idaho.json",
"show_footer":false,
"display_zoom_level": false,
"constrain_to_data": true,
'icon_folder': 'timeglider/js/timeglider/icons/',
"event_overflow":'hide'
});