Needs work
Project:
jsGantt View
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Dec 2010 at 15:47 UTC
Updated:
20 Jun 2011 at 09:42 UTC
Jump to comment: Most recent file
1) jsgantt/jsgantt.js, line 369 should end with a semicolon ";". I know, I know, it's not your code, but anyway, esp since you have packaged your module together with 3rd party code :), which leads us into...
2) The whole jsgantt folder should be taken out of module folder and put into sites/all/library folder instead. Keeping the 3rd party libraries together with the module code is def. not recommended.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | jsgantt.patch | 15.41 KB | Azol |
Comments
Comment #1
Azol commented3) Another interesting thing is at line 1618 of jsgantt.js:
should have probably been
as we try to use
<p>to split parameters in the xml file.Anyway, I did some cleaning, inserting missing semicolons etc, here is the patch (vs HEAD), feel free to give it a try to see if it resolves any previous issues with displaying dependencies between tasks.
Comment #2
Azol commentedComment #3
danepowell commentedThanks for the patch, someone will need to review it before I can commit it.
Comment #4
PatchRanger commentedThank you for the patch, Azol!
I've just applied it (with the help of Patch Manager).
1) This patch should be remade to fit -p1 standart (I had to remove some strings and to edit some other from .patch-file, because I don't know how to do it in civilized manner).
2) There were some 'fuzz' (what is it??) and 1 failure (see report below).
3) As I could see this patch didn't solve the problem with displaying task dependencies. Sometimes blue arrows are appearing - but not in predictable way. They are disappearing fast when I try to make them obedient. :)
Comment #5
Azol commentedLast thing I noticed is that the developer of gantt javascript has made available the improved version as well as 'packaged' version which should be tried out first. Most of the errors of previous version were fixed. Not sure about dependencies though.
Comment #6
danepowell commentedHuh? I don't think there's been any development of jsGantt in about two years...
Comment #7
Azol commentedhttp://www.jsgantt.com/zip/
This archive contains the fixed js code as well as compressed javascript file. I have been using this one for quite some time now.
Comment #8
danepowell commentedAh... well that release is still two years old. And if I recall, it claims to be the same version (1.2?) as the version in the Google Code repository, which is obviously different. I wasn't able to tell which one was actually better / newer, they both seemed to have problems.
Comment #9
Azol commentedYou can use some JS validation tool to compare them - the last version has most of the jscript-related errors fixed (most of those were the same I addressed in my patch).