-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-69658] Move internal
script
block in "failed-test.jelly" t…
…o external file (#439) Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
function showFailureSummary(id,query) { | ||
var element = document.getElementById(id) | ||
element.style.display = ""; | ||
document.getElementById(id + "-showlink").style.display = "none"; | ||
document.getElementById(id + "-hidelink").style.display = ""; | ||
|
||
if (typeof query !== 'undefined') { | ||
var rqo = new XMLHttpRequest(); | ||
rqo.open('GET', query, true); | ||
rqo.onreadystatechange = function() { element.innerHTML = rqo.responseText; } | ||
rqo.send(null); | ||
} | ||
} | ||
|
||
function hideFailureSummary(id) { | ||
document.getElementById(id).style.display = "none"; | ||
document.getElementById(id + "-showlink").style.display = ""; | ||
document.getElementById(id + "-hidelink").style.display = "none"; | ||
} |