in api-docs/0.6/lib/template.js [4:98]
$(document).ready(function(){
var prefilters = $("#ancestors > ol > li").filter(function(){
var name = $(this).attr("name");
return name == "scala.Any" || name == "scala.AnyRef";
});
prefilters.removeClass("in");
prefilters.addClass("out");
filter();
$("#ancestors > ol > li").click(function(){
if ($(this).hasClass("in")) {
$(this).removeClass("in");
$(this).addClass("out");
}
else if ($(this).hasClass("out")) {
$(this).removeClass("out");
$(this).addClass("in");
};
filter();
});
$("#ancestors > ol > li.hideall").click(function() {
$("#ancestors > ol > li.in").removeClass("in").addClass("out");
filter();
})
$("#ancestors > ol > li.showall").click(function() {
var filtered =
$("#ancestors > ol > li.out").filter(function() {
var name = $(this).attr("name");
return !(name == "scala.Any" || name == "scala.AnyRef");
});
filtered.removeClass("out").addClass("in");
filter();
});
$("#visbl > ol > li.public").click(function() {
if ($(this).hasClass("out")) {
$(this).removeClass("out").addClass("in");
$("#visbl > ol > li.all").removeClass("in").addClass("out");
filter();
};
})
$("#visbl > ol > li.all").click(function() {
if ($(this).hasClass("out")) {
$(this).removeClass("out").addClass("in");
$("#visbl > ol > li.public").removeClass("in").addClass("out");
filter();
};
});
//http://flowplayer.org/tools/tooltip.html
$(".extype").tooltip({
tip: "#tooltip",
position:"top center",
onBeforeShow: function(ev) {
$(this.getTip()).text(this.getTrigger().attr("name"));
}
});
$("#template div.fullcomment").hide();
var docAllSigs = $("#template .signature");
function commentShowFct(fullComment){
var vis = $(":visible", fullComment);
if (vis.length > 0) {
fullComment.slideUp(100);
}
else {
fullComment.slideDown(100);
}
};
var docShowSigs = docAllSigs.filter(function(){
return $("+ div.fullcomment", $(this)).length > 0;
});
docShowSigs.css("cursor", "help");
docShowSigs.click(function(){
commentShowFct($("+ div.fullcomment", $(this)));
});
function commentToggleFct(shortComment){
var vis = $("~ div.fullcomment:visible", shortComment);
if (vis.length > 0) {
shortComment.slideDown(100);
vis.slideUp(100);
}
else {
var hid = $("~ div.fullcomment:hidden", shortComment);
hid.slideDown(100);
shortComment.slideUp(100);
}
};
var docToggleSigs = docAllSigs.filter(function(){
return $("+ p.shortcomment", $(this)).length > 0;
});
docToggleSigs.css("cursor", "help");
docToggleSigs.click(function(){
commentToggleFct($("+ p.shortcomment", $(this)));
});
$("p.shortcomment").click(function(){
commentToggleFct($(this));
});
});