seanjensengrey / jsgantt

Automatically exported from code.google.com/p/jsgantt
0 stars 0 forks source link

Folder problem #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output?
Show parent task and sub tasks.

Are there any specific API changes you would like to see?

Please provide any additional information below.
1.
Show like this :
– Parent task 1
  - Task 11
  - Task 12
    - Task 121
    - Task 122
      - Task 1221
      - Task 1222

2.Folder [Task 122] like this :
- Parent task 1
  - Task 11
  - Task 12
    - Task 121
    + Task 122

3.Folder [Parent task 1] like this :
+ Parent task 1

4.Show the [Parent task 1] you will see only this :
- Parent task 1
  - Task 11
  - Task 12

And when you click [Task 12]'s [-] there no event happens.

I think this is the reason :

if( vTaskList[i].getOpen() == 1)
vLeftTable += '<SPAN id="group_' + vID + '" style="color:#000000; 
cursor:pointer; font-weight:bold; FONT-SIZE: 12px;" onclick="JSGantt.folder
(' + vID + ','+vGanttVar+');'+vGanttVar+'.DrawDependencies
();">&ndash;</span><span style="color:#000000">&nbsp</SPAN>' ;

there is a [&ndash;] in this sentence, so the method [JSGantt.show]'s if 
and else doesn't work.

Original issue reported on code.google.com by tobe...@gmail.com on 29 Jul 2009 at 9:10