In jenkins-fitnesse.js I think you just need to replace
.on("touchstart click", "#fitnesse_results .collapsible > p.title, #fitnesse_results .scenario > td", function ()
{
$(this).parent().toggleClass('closed');
})
.on("click", "#fitnesse_results .collapsible > p.title a", function (event) {
// Do not open section when clicking on a link in the title, just follow the link.
event.stopPropagation();
return true;
})
with the scenario handling from fitnesse.js
.on("touchstart click", "#fitnesse_results .collapsible > p.title, #fitnesse_results .scenario > td", function () { $(this).parent().toggleClass('closed'); }
)
.on("click", "#fitnesse_results tr.scenario td, #fitnesse_results tr.exception td", function ()
{
$(this).parent().toggleClass('closed').nextUntil(":not(.exception-detail, .scenario-detail)").toggleClass("closed-detail");
}
)
.on("click", "#fitnesse_results .collapsible > p.title a", function (event)
{
// Do not open section when clicking on a link in the title, just follow the link.
event.stopPropagation();
return true;
}
)
In jenkins-fitnesse.js I think you just need to replace
.on("touchstart click", "#fitnesse_results .collapsible > p.title, #fitnesse_results .scenario > td", function ()
{ $(this).parent().toggleClass('closed'); }).on("click", "#fitnesse_results .collapsible > p.title a", function (event) { // Do not open section when clicking on a link in the title, just follow the link. event.stopPropagation(); return true; })
with the scenario handling from fitnesse.js
.on("touchstart click", "#fitnesse_results .collapsible > p.title, #fitnesse_results .scenario > td", function () { $(this).parent().toggleClass('closed'); }
)
{ $(this).parent().toggleClass('closed').nextUntil(":not(.exception-detail, .scenario-detail)").toggleClass("closed-detail"); }.on("click", "#fitnesse_results tr.scenario td, #fitnesse_results tr.exception td", function ()
)
{ // Do not open section when clicking on a link in the title, just follow the link. event.stopPropagation(); return true; }.on("click", "#fitnesse_results .collapsible > p.title a", function (event)
)