Glad to help. I try to avoid making changes to libraries directly, especially 
minified/compressed versions. Finding your changes in the code, or making 
changes without introducing side-effects can be really hard. If you don't want 
to go the route of loading your override after the minified timeline-bundle.js 
has been loaded, then make sure you document and comment your code to say 
*exactly* what changes were made in the bundle and *why*. Sometime down the 
road, you'll forget your changes are in the bundle, or you'll switch to the 
non-bundled version of the Timeline code to try and debug something and you'll 
go crazy trying to figure out why your timeline stopped working. 

--Mike

On Aug 23, 2011, at 4:28 PM, Brian Katke wrote:

> You are a life saver! I am using the timeline bundled version 2.3.0 so I 
> had to find the bit of code in timeline-bundle.js.
> 
> I replaced the line:
> 
> case SimileAjax.DateTime.HOUR:D=B.getUTCHours()+"hr";
> 
> With:
> 
> case SimileAjax.DateTime.HOUR:
>     var hours = B.getUTCHours();
>     text = (hours == 0 ? 12 : hours); // 0h is actually 12am
>     text = text < 13 ? text : text - 12; // switch to 12hr time display
>     text = hours < 12 ? text + "am": text + "pm"; // set am / pm as 
> appropriate
>     D=text;
>     break;
> 
> and it works perfectly! Thanks for your help.
> 
> Brian

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to