Open thiblahute opened 10 years ago
Kind of hard to debug without a full project. Sounds like a java script problem with the browser. A few ideas:
Is java script enabled in the browser? Is scripts/wz_tooltip.js found and loaded properly?
If both questions are answered with 'yes', please send me a complete test project to reproduce this. Chris
On 11/01/2013 06:13 PM, Saunier Thibault wrote:
This is my task:
|task reimplement_regressions "Reimplement regressions from the 0.15 serie, There are a few features we had in the 0.15 serie that are not back yet we should make sure that everything that was preset at that time is here in 1.0" {
FIXME Check why the generated html does not work!
task t1 "Reimplement video transformation"{ ${allocate_devs} effort 10d }
task t2 "Reimplement undo redo" { ${allocate_thib} effort 4d } } |
In the gantt chart, I have a details.png icon which will show the help cursor when over the icon, but clicking never shows the tooltip.
I paste the generated html related to that part:
<td class="taskcell1"><table class="tj_table_cell" style="text-align:left; height:14px; " cellspacing="0"><tbody><tr><td class="tj_table_cell_label" style="overflow:hidden; white-space:nowrap; height:18px; font-weight:bold; ">1.1.3</td></tr></tbody></table></td> <td class="taskcell1"> <table class="tj_table_cell" style="text-align:left; height:14px; " cellspacing="0"><tbody><tr> <td style="width:8px; "></td> <td onclick="TagToTip(&apos;ID24853560&apos;, TITLE, &apos;Reimplement regressions from the 0.15 serie There are a few features we had in the 0.15 serie that are&apos;)" class="tj_table_cell_icon" style="cursor:help; "><img alt="Icon" src="icons/taskgroup.png"></td> <td class="tj_table_cell_label" style="overflow:hidden; white-space:nowrap; height:18px; font-weight:bold; ">Reimplement regressions from the 0.15 serie...</td> <td onclick="TagToTip(&apos;ID24850700&apos;, TITLE, &apos;Reimplement regressions from the 0.15 serie There are a few features we had in the 0.15 serie that are&apos;)" style="cursor:help; "><img class="tj_table_cell_tooltip" src="icons/details.png"></td> </tr></tbody></table> <div class="tj_tooltip_box" id="ID24853560" style="cursor: help; display: none;"><div> <b>ID:</b> project.wp1.reimplement_regressions</div></div> <div class="tj_tooltip_box" id="ID24850700" style="cursor: help; display: none;">Reimplement regressions from the 0.15 serie There are a few features we had in the 0.15 serie that are</div> </td> <td class="taskcell1"><table class="tj_table_cell" style="text-align:left; height:14px; " cellspacing="0"><tbody><tr><td class="tj_table_cell_label" style="overflow:hidden; white-space:nowrap; height:18px; font-weight:bold; ">2014-03-10</td></tr></tbody></table></td> <td class="taskcell1"><table class="tj_table_cell" style="text-align:left; height:14px; " cellspacing="0"><tbody><tr><td class="tj_table_cell_label" style="overflow:hidden; white-space:nowrap; height:18px; font-weight:bold; ">2014-03-20</td></tr></tbody></table></td> <td class="taskcell1"><table class="tj_table_cell" style="text-align:right; height:14px; " cellspacing="0"><tbody><tr> <td class="tj_table_cell_label" style="overflow:hidden; white-space:nowrap; height:18px; font-weight:bold; ">14.0</td> <td style="width:16px; "></td> </tr></tbody></table></td> <td class="taskcell1"><table class="tj_table_cell" style="text-align:right; height:14px; " cellspacing="0"><tbody><tr> <td class="tj_table_cell_label" style="overflow:hidden; white-space:nowrap; height:18px; font-weight:bold; ">10.3</td> <td style="width:16px; "></td> </tr></tbody></table></td>
``html
Not 100% sure it is a bug or I am doing something wrong though.
— Reply to this email directly or view it on GitHub https://github.com/taskjuggler/TaskJuggler/issues/124.
Is java script enabled in the browser? Is scripts/wz_tooltip.js found and loaded properly?
Yes and Yes
Full project reproducing the issue (based on the tutorial.tjp project)
project acso "Accounting Software" 2002-01-16 +4m {
timezone "Europe/Paris"
timeformat "%Y-%m-%d"
numberformat "-" "" "," "." 1
currencyformat "(" ")" "," "." 0
now 2002-03-05-13:00
currency "USD"
scenario plan "Plan" {
scenario delayed "Delayed"
}
extend resource {
text Phone "Phone"
}
}
copyright "© 2002 Crappy Software, Inc."
rate 390.0
leaves holiday "Good Friday" 2002-03-29
flags team
macro allocate_developers [
allocate dev1
allocate dev2
allocate dev3
]
account cost "Project Cost" {
account dev "Development"
account doc "Documentation"
}
account rev "Payments"
balance cost rev
resource boss "Paul Henry Bullock" {
email "phb@crappysoftware.com"
Phone "x100"
rate 480
}
resource dev "Developers" {
managers boss
resource dev1 "Paul Smith" {
email "paul@crappysoftware.com"
Phone "x362"
rate 350.0
}
resource dev2 "Sébastien Bono" {
email "SBono@crappysoftware.com"
Phone "x234"
}
resource dev3 "Klaus Müller" {
email "Klaus.Mueller@crappysoftware.com"
Phone "x490"
leaves annual 2002-02-01 - 2002-02-05
}
flags team
}
task AcSo "Accounting Software" {
chargeset dev
charge 170 perday
responsible boss
task software "Software Development
We are gonna make it great" { # This is where it does not work
priority 1000
}
task deliveries "Milestones" {
# Some milestones have customer payments associated with them. We
# credit these payments to the 'rev' account.
purge chargeset
chargeset rev
task start "Project start" {
start ${projectstart}
delayed:start 2002-01-20
charge 21000.0 onstart
}
}
}
# Now the project has been specified completely. Stopping here would
# result in a valid TaskJuggler file that could be processed and
# scheduled. But no reports would be generated to visualize the
# results.
navigator navbar {
hidereport @none
}
macro TaskTip [
tooltip istask() -8<-
'''Start: ''' <-query attribute='start'->
'''End: ''' <-query attribute='end'->
----
'''Resources:'''
<-query attribute='resources'->
----
'''Precursors: '''
<-query attribute='precursors'->
----
'''Followers: '''
<-query attribute='followers'->
->8-
]
textreport frame "" {
header -8<-
== Accounting Software Project ==
<[navigator id="navbar"]>
->8-
footer "----"
textreport index "Overview" {
formats html
center '<[report id="overview"]>'
}
textreport "Status" {
formats html
center -8<-
<[report id="status.dashboard"]>
----
<[report id="status.completed"]>
----
<[report id="status.ongoing"]>
----
<[report id="status.future"]>
->8-
}
textreport development "Development" {
formats html
center '<[report id="development"]>'
}
textreport "ContactList" {
formats html
title "Contact List"
center '<[report id="contactList"]>'
}
textreport "ResourceGraph" {
formats html
title "Resource Graph"
center '<[report id="resourceGraph"]>'
}
}
# A traditional Gantt chart with a project overview.
taskreport overview "" {
header -8<-
=== Project Overview ===
The project is structured into 3 phases.
# Specification
# <-reportlink id='frame.development'->
# Testing
=== Original Project Plan ===
->8-
columns bsi { title 'WBS' },
name, start, end, effort, cost,
revenue, chart { ${TaskTip} }
# For this report we like to have the abbreviated weekday in front
# of the date. %a is the tag for this.
timeformat "%a %Y-%m-%d"
loadunit days
hideresource @all
balance cost rev
caption 'All effort values are in man days.'
footer -8<-
=== Staffing ===
All project phases are properly staffed. See [[ResourceGraph]] for
detailed resource allocations.
=== Current Status ===
The project started off with a delay of 4 days. This slightly affected
the original schedule. See [[Deliveries]] for the impact on the
delivery dates.
->8-
}
# Macro to set the background color of a cell according to the alert
# level of the task.
macro AlertColor [
cellcolor plan.alert = 0 "#00D000" # green
cellcolor plan.alert = 1 "#D0D000" # yellow
cellcolor plan.alert = 2 "#D00000" # red
]
taskreport status "" {
columns bsi { width 50 title 'WBS' }, name { width 150 },
start { width 100 }, end { width 100 },
effort { width 100 },
alert { tooltip plan.journal
!= '' "<-query attribute='journal'->" width 150 },
status { width 150 }
scenarios delayed
taskreport dashboard "" {
headline "Project Dashboard (<-query attribute='now'->)"
columns name { title "Task" ${AlertColor} width 200},
resources { width 200 ${AlertColor}
listtype bullets
listitem "<-query attribute='name'->"
start ${projectstart} end ${projectend} },
alerttrend { title "Trend" ${AlertColor} width 50 },
journal { width 350 ${AlertColor} }
journalmode status_up
journalattributes headline, author, date, summary, details
hidetask ~hasalert(0)
sorttasks alert.down, delayed.end.up
period %{${now} - 1w} +1w
}
taskreport completed "" {
headline "Already completed tasks"
hidetask ~(delayed.end <= ${now})
}
taskreport ongoing "" {
headline "Ongoing tasks"
hidetask ~((delayed.start <= ${now}) & (delayed.end > ${now}))
}
taskreport future "" {
headline "Future tasks"
hidetask ~(delayed.start > ${now})
}
}
# A list of tasks showing the resources assigned to each task.
taskreport development "" {
scenarios delayed
headline "Development - Resource Allocation Report"
columns bsi { title 'WBS' }, name, start, end, effort { title "Work" },
duration, chart { ${TaskTip} scale day width 500 }
timeformat "%Y-%m-%d"
hideresource ~(isleaf() & isleaf_())
sortresources name.up
}
# A list of all tasks with the percentage completed for each task
taskreport deliveries "" {
headline "Project Deliverables"
columns bsi { title 'WBS' }, name, start, end, note { width 150 }, complete,
chart { ${TaskTip} }
taskroot AcSo.deliveries
hideresource @all
scenarios plan, delayed
}
# A list of all employees with their contact details.
resourcereport contactList "" {
scenarios delayed
headline "Contact list and duty plan"
columns name,
email { celltext 1 "[mailto:<-email-> <-email->]" },
Phone,
managers { title "Manager" },
chart { scale day }
hideresource ~isleaf()
sortresources name.up
hidetask @all
}
# A graph showing resource allocation. It identifies whether each
# resource is under- or over-allocated for.
resourcereport resourceGraph "" {
scenarios delayed
headline "Resource Allocation Graph"
columns no, name, effort, rate, weekly { ${TaskTip} }
loadunit shortauto
# We only like to show leaf tasks for leaf resources.
hidetask ~(isleaf() & isleaf_())
sorttasks plan.start.up
}
This is my task:
In the gantt chart, I have a details.png icon which will show the help cursor when over the icon, but clicking never shows the tooltip.
I paste the generated html related to that part:
Not 100% sure it is a bug or I am doing something wrong though.