]> git.ozlabs.org Git - hiprofile/blob - share/hiprofile/hiprofile.js
Initial commit
[hiprofile] / share / hiprofile / hiprofile.js
1
2 function expand_source(node)
3 {
4     var text = $(node).text();
5     var new_text;
6     var new_display;
7
8     if (text == "+") {
9         new_text = "-";
10         new_display = "block";
11     } else {
12         new_text = "+";
13         new_display = "none";
14     }
15
16     $(node).text(new_text);
17     $(node).parent().find("pre[class='source']").
18         css("display", new_display);
19 }