Skip to content

Commit

Permalink
v1.7.5.1 - Tool Tip fix and move dates so current date marker is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
jsGanttImproved committed May 1, 2016
1 parent 57f9453 commit b00ebb5
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 40 deletions.
70 changes: 37 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<body>

<div style="position:absolute; z-index: 5; top:0; left:0; width: 100%;">
<div class="header">jsGanttImproved - 1.7.5</div>
<div class="header">jsGanttImproved - 1.7.5.1</div>
<div class="nav">
<ul>
<li><a href="#tBugs">Bugs/Issues</a></li>
Expand Down Expand Up @@ -109,25 +109,25 @@
// Parameters (pID, pName, pStart, pEnd, pStyle, pLink (unused) pMile, pRes, pComp, pGroup, pParent, pOpen, pDepend, pCaption, pNotes, pGantt)

g.AddTaskItem(new JSGantt.TaskItem(1, 'Define Chart API', '', '', 'ggroupblack', '', 0, 'Brian', 0, 1, 0, 1, '', '', 'Some Notes text', g ));
g.AddTaskItem(new JSGantt.TaskItem(11, 'Chart Object', '2014-02-20','2014-02-20', 'gmilestone', '', 1, 'Shlomy', 100, 0, 1, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(11, 'Chart Object', '2016-02-20','2016-02-20', 'gmilestone', '', 1, 'Shlomy', 100, 0, 1, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(12, 'Task Objects', '', '', 'ggroupblack', '', 0, 'Shlomy', 40, 1, 1, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(121, 'Constructor Proc', '2014-02-21','2014-03-09', 'gtaskblue', '', 0, 'Brian T.', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(122, 'Task Variables', '2014-03-06','2014-03-11', 'gtaskred', '', 0, 'Brian', 60, 0, 12, 1, 121, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(123, 'Task by Minute/Hour', '2014-03-09','2014-03-14 12:00', 'gtaskyellow', '', 0, 'Ilan', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(124, 'Task Functions', '2014-03-09','2014-03-29', 'gtaskred', '', 0, 'Anyone', 60, 0, 12, 1, '123SS', 'This is a caption', null, g));
g.AddTaskItem(new JSGantt.TaskItem(2, 'Create HTML Shell', '2014-03-24','2014-03-24', 'gtaskyellow', '', 0, 'Brian', 20, 0, 0, 1, 122, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(121, 'Constructor Proc', '2016-02-21','2016-03-09', 'gtaskblue', '', 0, 'Brian T.', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(122, 'Task Variables', '2016-03-06','2016-03-11', 'gtaskred', '', 0, 'Brian', 60, 0, 12, 1, 121, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(123, 'Task by Minute/Hour', '2016-03-09','2016-03-14 12:00', 'gtaskyellow', '', 0, 'Ilan', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(124, 'Task Functions', '2016-03-09','2016-03-29', 'gtaskred', '', 0, 'Anyone', 60, 0, 12, 1, '123SS', 'This is a caption', null, g));
g.AddTaskItem(new JSGantt.TaskItem(2, 'Create HTML Shell', '2016-03-24','2016-03-24', 'gtaskyellow', '', 0, 'Brian', 20, 0, 0, 1, 122, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(3, 'Code Javascript', '', '', 'ggroupblack', '', 0, 'Brian', 0, 1, 0, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(31, 'Define Variables', '2014-02-25','2014-03-17', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '', 'Caption 1','', g));
g.AddTaskItem(new JSGantt.TaskItem(32, 'Calculate Chart Size', '2014-03-15','2014-03-24', 'gtaskgreen', '', 0, 'Shlomy', 40, 0, 3, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(31, 'Define Variables', '2016-02-25','2016-03-17', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '', 'Caption 1','', g));
g.AddTaskItem(new JSGantt.TaskItem(32, 'Calculate Chart Size', '2016-03-15','2016-03-24', 'gtaskgreen', '', 0, 'Shlomy', 40, 0, 3, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(33, 'Draw Task Items', '', '', 'ggroupblack', '', 0, 'Someone', 40, 2, 3, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(332, 'Task Label Table', '2014-03-06','2014-03-09', 'gtaskblue', '', 0, 'Brian', 60, 0, 33, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(333, 'Task Scrolling Grid', '2014-03-11','2014-03-20', 'gtaskblue', '', 0, 'Brian', 0, 0, 33, 1, '332', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(332, 'Task Label Table', '2016-03-06','2016-03-09', 'gtaskblue', '', 0, 'Brian', 60, 0, 33, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(333, 'Task Scrolling Grid', '2016-03-11','2016-03-20', 'gtaskblue', '', 0, 'Brian', 0, 0, 33, 1, '332', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(34, 'Draw Task Bars', '', '', 'ggroupblack', '', 0, 'Anybody', 60, 1, 3, 0, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(341, 'Loop each Task', '2014-03-26','2014-04-11', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(342, 'Calculate Start/Stop', '2014-04-12','2014-05-18', 'gtaskpink', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(343, 'Draw Task Div', '2014-05-13','2014-05-17', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(344, 'Draw Completion Div', '2014-05-17','2014-06-04', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, "342,343",'', '', g));
g.AddTaskItem(new JSGantt.TaskItem(35, 'Make Updates', '2014-07-17','2015-09-04', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '333', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(341, 'Loop each Task', '2016-03-26','2016-04-11', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(342, 'Calculate Start/Stop', '2016-04-12','2016-05-18', 'gtaskpink', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(343, 'Draw Task Div', '2016-05-13','2016-05-17', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(344, 'Draw Completion Div', '2016-05-17','2016-06-04', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, "342,343",'', '', g));
g.AddTaskItem(new JSGantt.TaskItem(35, 'Make Updates', '2016-07-17','2017-09-04', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '333', '', '', g));

g.Draw();
} else {
Expand Down Expand Up @@ -175,6 +175,10 @@ <h3>Current Issues:</h3>

</ol><br/>
<h3>Changes/fixes in jsGanttImproved:</h3>
<h4>v1.7.5.1:</h4>
<ul>
<li>Fixed problem that would occur if Tool Tips were disabled</li>
</ul>
<h4>v1.7.5:</h4>
<ul>
<li>Project Migrated to GitHub</li>
Expand Down Expand Up @@ -363,14 +367,14 @@ <h2 class="roundedCornerfg" id="tUsage">Usage</h2>
<ol type="a"><li>using AddTaskItem()
<pre class="style1">
g.AddTaskItem(new JSGantt.TaskItem(1, 'Define Chart API','', '', 'ggroupblack','', 0, 'Brian', 0, 1,0,1,'','','Some Notes text',g));
g.AddTaskItem(new JSGantt.TaskItem(11,'Chart Object', '2014-02-20','2014-02-20','gmilestone', '', 1, 'Shlomy',100,0,1,1,'','','',g));
g.AddTaskItem(new JSGantt.TaskItem(11,'Chart Object', '2016-02-20','2016-02-20','gmilestone', '', 1, 'Shlomy',100,0,1,1,'','','',g));
</pre>
<p>Method definition:
<strong>TaskItem(<em>pID, pName, pStart, pEnd, pColor, pLink, pMile, pRes, pComp, pGroup, pParent, pOpen, pDepend, pCaption, pNotes, pGantt</em>)</strong></p>
<dl>
<dt>pID</dt><dd>(required) a unique numeric ID used to identify each row</dd>
<dt>pName</dt><dd>(required) the task Label</dd>
<dt>pStart</dt><dd>(required) the task start date, can enter empty date ('') for groups. You can also enter specific time (2014-02-20 12:00) for additional precision.</dd>
<dt>pStart</dt><dd>(required) the task start date, can enter empty date ('') for groups. You can also enter specific time (2016-02-20 12:00) for additional precision.</dd>
<dt>pEnd</dt><dd>(required) the task end date, can enter empty date ('') for groups</dd>
<dt>pClass</dt><dd>(required) the css class for this task</dd>
<dt>pLink</dt><dd>(optional) any http link to be displayed in tool tip as the "More information" link.</dd>
Expand Down Expand Up @@ -681,25 +685,25 @@ <h3 id="tOptionsExamples">Example Options</h3>
g.setFormatArr('Day', 'Week', 'Month', 'Quarter');

g.AddTaskItem(new JSGantt.TaskItem(1, 'Define Chart API', '', '', 'ggroupblack', '', 0, 'Brian', 0, 1, 0, 1, '', '', 'Some Notes text', g ));
g.AddTaskItem(new JSGantt.TaskItem(11, 'Chart Object', '2014-02-20','2014-02-20', 'gmilestone', '', 1, 'Shlomy', 100, 0, 1, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(11, 'Chart Object', '2016-02-20','2016-02-20', 'gmilestone', '', 1, 'Shlomy', 100, 0, 1, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(12, 'Task Objects', '', '', 'ggroupblack', '', 0, 'Shlomy', 40, 1, 1, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(121, 'Constructor Proc', '2014-02-21','2014-03-09', 'gtaskblue', '', 0, 'Brian T.', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(122, 'Task Variables', '2014-03-06','2014-03-11', 'gtaskred', '', 0, 'Brian', 60, 0, 12, 1, 121, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(123, 'Task by Minute/Hour', '2014-03-09','2014-03-14 12:00', 'gtaskyellow', '', 0, 'Ilan', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(124, 'Task Functions', '2014-03-09','2014-03-29', 'gtaskred', '', 0, 'Anyone', 60, 0, 12, 1, '123SS', 'This is a caption', null, g));
g.AddTaskItem(new JSGantt.TaskItem(2, 'Create HTML Shell', '2014-03-24','2014-03-24', 'gtaskyellow', '', 0, 'Brian', 20, 0, 0, 1, 122, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(121, 'Constructor Proc', '2016-02-21','2016-03-09', 'gtaskblue', '', 0, 'Brian T.', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(122, 'Task Variables', '2016-03-06','2016-03-11', 'gtaskred', '', 0, 'Brian', 60, 0, 12, 1, 121, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(123, 'Task by Minute/Hour', '2016-03-09','2016-03-14 12:00', 'gtaskyellow', '', 0, 'Ilan', 60, 0, 12, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(124, 'Task Functions', '2016-03-09','2016-03-29', 'gtaskred', '', 0, 'Anyone', 60, 0, 12, 1, '123SS', 'This is a caption', null, g));
g.AddTaskItem(new JSGantt.TaskItem(2, 'Create HTML Shell', '2016-03-24','2016-03-24', 'gtaskyellow', '', 0, 'Brian', 20, 0, 0, 1, 122, '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(3, 'Code Javascript', '', '', 'ggroupblack', '', 0, 'Brian', 0, 1, 0, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(31, 'Define Variables', '2014-02-25','2014-03-17', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '', 'Caption 1','', g));
g.AddTaskItem(new JSGantt.TaskItem(32, 'Calculate Chart Size', '2014-03-15','2014-03-24', 'gtaskgreen', '', 0, 'Shlomy', 40, 0, 3, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(31, 'Define Variables', '2016-02-25','2016-03-17', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '', 'Caption 1','', g));
g.AddTaskItem(new JSGantt.TaskItem(32, 'Calculate Chart Size', '2016-03-15','2016-03-24', 'gtaskgreen', '', 0, 'Shlomy', 40, 0, 3, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(33, 'Draw Task Items', '', '', 'ggroupblack', '', 0, 'Someone', 40, 2, 3, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(332, 'Task Label Table', '2014-03-06','2014-03-09', 'gtaskblue', '', 0, 'Brian', 60, 0, 33, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(333, 'Task Scrolling Grid', '2014-03-11','2014-03-20', 'gtaskblue', '', 0, 'Brian', 0, 0, 33, 1, '332', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(332, 'Task Label Table', '2016-03-06','2016-03-09', 'gtaskblue', '', 0, 'Brian', 60, 0, 33, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(333, 'Task Scrolling Grid', '2016-03-11','2016-03-20', 'gtaskblue', '', 0, 'Brian', 0, 0, 33, 1, '332', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(34, 'Draw Task Bars', '', '', 'ggroupblack', '', 0, 'Anybody', 60, 1, 3, 0, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(341, 'Loop each Task', '2014-03-26','2014-04-11', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(342, 'Calculate Start/Stop', '2014-04-12','2014-05-18', 'gtaskpink', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(343, 'Draw Task Div', '2014-05-13','2014-05-17', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(344, 'Draw Completion Div', '2014-05-17','2014-06-04', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, "342,343",'', '', g));
g.AddTaskItem(new JSGantt.TaskItem(35, 'Make Updates', '2014-07-17','2015-09-04', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '333', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(341, 'Loop each Task', '2016-03-26','2016-04-11', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(342, 'Calculate Start/Stop', '2016-04-12','2016-05-18', 'gtaskpink', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(343, 'Draw Task Div', '2016-05-13','2016-05-17', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, '', '', '', g));
g.AddTaskItem(new JSGantt.TaskItem(344, 'Draw Completion Div', '2016-05-17','2016-06-04', 'gtaskred', '', 0, 'Brian', 60, 0, 34, 1, "342,343",'', '', g));
g.AddTaskItem(new JSGantt.TaskItem(35, 'Make Updates', '2016-07-17','2017-09-04', 'gtaskpurple', '', 0, 'Brian', 30, 0, 3, 1, '333', '', '', g));

g.Draw();
}
Expand Down
6 changes: 5 additions & 1 deletion jsgantt_exExternalXML.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<body>

<div style="position:absolute; z-index: 5; top:0; left:0; width: 100%;">
<div class="header">jsGanttImproved - 1.7.5</div>
<div class="header">jsGanttImproved - 1.7.5.1</div>
<div class="nav">
<ul>
<li><a href="#tBugs">Bugs/Issues</a></li>
Expand Down Expand Up @@ -151,6 +151,10 @@ <h3>Current Issues:</h3>

</ol><br/>
<h3>Changes/fixes in jsGanttImproved:</h3>
<h4>v1.7.5.1:</h4>
<ul>
<li>Fixed problem that would occur if Tool Tips were disabled</li>
</ul>
<h4>v1.7.5:</h4>
<ul>
<li>Project Migrated to GitHub</li>
Expand Down
12 changes: 6 additions & 6 deletions project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<task>
<pID>20</pID>
<pName>Move to WCF from remoting</pName>
<pStart>2014-05-11 09:00</pStart>
<pEnd>2014-05-15</pEnd>
<pStart>2016-05-11 09:00</pStart>
<pEnd>2016-05-15</pEnd>
<pClass>gtaskblue</pClass>
<pLink></pLink>
<pMile>0</pMile>
Expand All @@ -35,8 +35,8 @@
<task>
<pID>30</pID>
<pName>add Auditing</pName>
<pStart>2014-05-19 10:30</pStart>
<pEnd>2014-05-21 12:00</pEnd>
<pStart>2016-05-19 10:30</pStart>
<pEnd>2016-05-21 12:00</pEnd>
<pClass>gtaskblue</pClass>
<pLink></pLink>
<pMile>0</pMile>
Expand All @@ -51,8 +51,8 @@
<task>
<pID>40</pID>
<pName>Yet another task</pName>
<pStart>2014-05-23</pStart>
<pEnd>2014-05-24</pEnd>
<pStart>2016-05-23</pStart>
<pEnd>2016-05-24</pEnd>
<pClass>gtaskblue</pClass>
<pLink></pLink>
<pMile>0</pMile>
Expand Down

0 comments on commit b00ebb5

Please sign in to comment.