summaryrefslogtreecommitdiff
path: root/build/tools/gallio/Reports/js/Gallio-Report.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/tools/gallio/Reports/js/Gallio-Report.js')
-rw-r--r--build/tools/gallio/Reports/js/Gallio-Report.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/build/tools/gallio/Reports/js/Gallio-Report.js b/build/tools/gallio/Reports/js/Gallio-Report.js
new file mode 100644
index 0000000..d5d7988
--- /dev/null
+++ b/build/tools/gallio/Reports/js/Gallio-Report.js
@@ -0,0 +1,24 @@
+function toggle(id)
+{
+ var icon = document.getElementById('toggle-' + id);
+ if (icon != null)
+ {
+ var childElement = document.getElementById(id);
+ if (icon.src.indexOf('Plus.gif') != -1)
+ {
+ icon.src = icon.src.replace('Plus.gif', 'Minus.gif');
+ if (childElement != null)
+ {
+ childElement.style.display = "block";
+ }
+ }
+ else
+ {
+ icon.src = icon.src.replace('Minus.gif', 'Plus.gif');
+ if (childElement != null)
+ {
+ childElement.style.display = "none";
+ }
+ }
+ }
+} \ No newline at end of file