By 317911 - Saturday, September 22, 2007
|
In the generate HTML pages within the Javascript it is mentioned: <script> var tl, tlParam = new Object(); tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = waar tlParam.nowTag = ' now'; tlParam.wrapEvents = waar; tlParam.json0 = { 'events' : [ { 'start' : If the code is change manually into <script> var tl, tlParam = new Object(); tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = true tlParam.nowTag = ' now'; tlParam.wrapEvents = true; tlParam.json0 = { 'events' : [ { 'start' : everything works fine. It looks like the system converts true into waar (which is dutch for true). How to set things so it will work correctly automatically?
|
By genome - Saturday, September 22, 2007
|
Thanks for reporting this problem, which I assume occurs with other language versions. The AddHeader function in script Code/TimelineInfo.vbs needs to be changed: Function AddHeader(Inline) If Inline Then Report.WriteLn "<script src=""timeline/timeline-api.js"" type=""text/javascript""></script>" Report.WriteLn "<script>" Report.WriteLn "var tl, tlParam = new Object();" Report.WriteFormattedLn "tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = {}", LCase(g_TimelineShowDuration & "") Report.WriteFormattedLn "tlParam.nowTag = ' {&j}';", Dic("TimelineNowTag") Report.WriteFormattedLn "tlParam.wrapEvents = {};", LCase(g_TimelineWrapEvents) Report.Write "tlParam.json0 = " End If Report.WriteLn "{" Report.WriteLn "'events' : [" End function | needs to be changed to Function AddHeader(Inline) If Inline Then Report.WriteLn "<script src=""timeline/timeline-api.js"" type=""text/javascript""></script>" Report.WriteLn "<script>" Report.WriteLn "var tl, tlParam = new Object();" Report.WriteFormattedLn "tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = {}", Util.IfElse(g_TimelineShowDuration, "true", "false") Report.WriteFormattedLn "tlParam.nowTag = ' {&j}';", Dic("TimelineNowTag") Report.WriteFormattedLn "tlParam.wrapEvents = {};", Util.IfElse(g_TimelineWrapEvents, "true", "false") Report.Write "tlParam.json0 = " End If Report.WriteLn "{" Report.WriteLn "'events' : [" End function |
I will include this change in my next version of the Narrative Report.
|
By 317911 - Saturday, September 22, 2007
|
Thanks, for the quick reply. It is working now. Ary
|
|