Indefero

Indefero Commit Details


Date:2011-02-28 17:21:05 (13 years 9 months ago)
Author:Thomas Keller
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, release-1.1, release-1.2, release-1.3
Commit:29d966cdb3178963702a87919ad3e4ae496e510c
Parents: 23d2bd552c18866bef0654f2ad1cab5e65cc7cce
Message:Reformat slightly; hide the table of contents if there are less than two jump marks.

Changes:

File differences

www/media/idf/js/wiki-toc.js
11
2
2
33
4
5
4
5
6
7
8
9
610
711
$(document).ready(function() {
$(":header", "#wiki-content").map(function (index) {
$(":header", "#wiki-content").map(function(index) {
this.id = "wikititle_" + index;
$("<a href='#" + this.id + "'>" + jQuery.fn.text([this]) + "</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');
});
if ($('#wiki-toc-content').size() < 2)
$('#wiki-toc').hide();
});

Archive Download the corresponding diff file

Page rendered in 0.07038s using 13 queries.