Indefero

Indefero Commit Details


Date:2011-01-25 02:57:44 (13 years 10 months ago)
Author:Loïc d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:41fb1bf13c3cf0e0c5fb09cb9f3e207bd57023a4
Parents: ddb05e68a3239ba28737e05bd6f6e0249f31ae0d
Message:Fixed the table of content to work with all the browsers.

Changes:

File differences

www/media/idf/js/wiki-toc.js
11
22
33
4
4
55
66
77
$(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');
});
});

Archive Download the corresponding diff file

Page rendered in 0.07065s using 13 queries.