diff options
| author | mo <mo.khan@gmail.com> | 2018-11-04 15:22:16 -0700 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2018-11-04 15:22:16 -0700 |
| commit | 5ee1f55497a4e30322a56f133f897ecde1612967 (patch) | |
| tree | bf544e0879234c3623869627d8786776cb19b8e9 /build/tools/gallio/Reports/js/Gallio-Report.js | |
Diffstat (limited to 'build/tools/gallio/Reports/js/Gallio-Report.js')
| -rw-r--r-- | build/tools/gallio/Reports/js/Gallio-Report.js | 24 |
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 |
