X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=build%2Fdocs%2Fjs%2Fdoc.js;h=ec52b664d438e0338973ea7d2aaa88433da05c83;hb=e23c047e786ada99f7f42c1ad1c305eb2394ca7f;hp=8bd25b1c3eba35f0c904da685f386ea0aefe29e5;hpb=51dd3736eb84b171b041f419f6fb8a7e8626b0f2;p=jquery.git diff --git a/build/docs/js/doc.js b/build/docs/js/doc.js index 8bd25b1..ec52b66 100644 --- a/build/docs/js/doc.js +++ b/build/docs/js/doc.js @@ -11,10 +11,13 @@ var types = { }; $(document).ready(function(){ - $("span.tooltip").ToolTipDemo('#fff'); + $("span.tooltip").each(function(){ + if ( types[ this.innerHTML ] ) + this.title = types[ this.innerHTML ]; + }).ToolTipDemo('#fff'); $("a.name").click(function(){ - $("div.more,div.short",this.parentNode.parentNode).toggle().find("div.desc",function(){ + $("div.more,div.short",this.parentNode.parentNode).toggle('slow').find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/g, "

") ); }); return false;