Fixed the table of content to work with all the browsers.

This commit is contained in:
Loïc d'Anterroches 2011-01-25 09:57:44 +01:00
parent ddb05e68a3
commit 41fb1bf13c

View File

@ -1,7 +1,7 @@
$(document).ready(function() {
$(":header", "#wiki-content").map(function (index) {
this.id = "wikititle_" + index;
$("<a href='#" + this.id + "'>" + this.innerText + "</a>").addClass("wiki-" + this.tagName.toLowerCase()).appendTo('#wiki-toc-content');
$("<a href='#" + this.id + "'>" + jQuery.fn.text([this]) + "</a>").addClass("wiki-" + this.tagName.toLowerCase()).appendTo('#wiki-toc-content');
});
});