X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=build%2Fdocs%2Fjs%2Fdoc.js;h=b0d698992f021effccaf740f2868cd9427d27e16;hb=f368960479a1b8f7904bc2ca65a7a9cd74cc5a13;hp=4beeb43515dbadbc0bfe9af76367a9687649922c;hpb=6350e8a7e027de13e33116ffd130260bda64e4bf;p=jquery.git diff --git a/build/docs/js/doc.js b/build/docs/js/doc.js index 4beeb43..b0d6989 100644 --- a/build/docs/js/doc.js +++ b/build/docs/js/doc.js @@ -13,10 +13,19 @@ var types = { }; $(document).ready(function(){ - $("span.tooltip").each(function(){ - if ( types[ this.innerHTML ] ) + var tooltips = $("span.tooltip").each(function() { + var type = this.innerHTML; + if( type.indexOf("|") != -1 ) { + var $this = $(this).empty(); + $.each(type.split("\|"), function(i, n) { + var title = types[n] && " title=\"" + types[n] + "\"" || ""; + var pipe = i != 0 ? "|" : ""; + $this.append( pipe + "" + n + "" ); + }); + } else if ( types[ this.innerHTML ] ) this.title = types[ this.innerHTML ]; - }).ToolTipDemo('#fff'); + }) + tooltips.add($("span.tooltip", tooltips)).ToolTipDemo('#fff'); $("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode).toggle();