JSGantt Version:1.2
Browser:ie6
OS:winxp
What steps will reproduce the problem?
1.In test.html, write that [var g = new JSGantt.GanttChart
('g',document.getElementById('GanttChartDIV'), 'day');
...
g.setDateDisplayFormat('yyyy-mm-dd')
2.Save
3.Open test.html
4.When the 'Format' is selected 'day', the Gantt's right title shows
[undefined - 2008-2-23]
What is the expected output? 2008-2-17 - 2008-2-23
What do you see instead? undefined - 2008-2-23
Please provide any additional information below.
Reason:
I saw the soure in jsgantt.js, where about line 623 is this :
JSGantt.formatDateStr(vTmpDate,vDateDisplayFormat.substring(0,5)) + ' - ';
when the display format is setted 'yyyy-mm-dd',
the sentence 'vDateDisplayFormat.substring(0,5)' result is 'yyyy-',
so it displays 'undefined' on the page.
sorry, my English is poor, you can email me 123099663@qq.com to connect me.
Original issue reported on code.google.com by tobe...@gmail.com on 1 Jul 2009 at 6:04
Original issue reported on code.google.com by
tobe...@gmail.com
on 1 Jul 2009 at 6:04Attachments: