Skip to content
Permalink
Browse files

[JENKINS-27938] Fix JS: can't expand collapsed scenario

  • Loading branch information...
antoine-aumjaud committed Jun 11, 2015
1 parent 7fd3fca commit 9143adcbf5f30ad15fd558c1ba07c9b9c275bfad
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/main/webapp/javascript/jenkins_fitnesse.js
@@ -1,12 +1,23 @@
/**
* JS from FitNesse project (fitnesse.js)
* Modification done:
* - keep only js on collapsible section
* - keep only js on "Collapsible" and "Scenario's and Exceptions" section
* - change article by container id in selectors (#fitnesse_results)
*/

$(function(){

/**
* Scenario's and Exceptions (after test execution)
*/
$(document)
.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");
});

/**
* Collapsible section
*/
$(document)

.on("touchstart click", "#fitnesse_results .collapsible > p.title", function () {

0 comments on commit 9143adc

Please sign in to comment.
You can’t perform that action at this time.