Skip to content

Commit

Permalink
[JENKINS-27938] Fix JS: can't expand collapsed scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-aumjaud committed Jun 11, 2015
1 parent 7fd3fca commit 9143adc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion 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 () {
Expand Down

0 comments on commit 9143adc

Please sign in to comment.