mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-01 22:43:41 +03:00
Fixed JS errors in local Sphinx build
This commit is contained in:
parent
be99470b29
commit
1afcdb2c34
|
@ -5,7 +5,7 @@ jQuery(document).ready(function ($) {
|
||||||
$section.children('.section, .function, .method').each(function () {
|
$section.children('.section, .function, .method').each(function () {
|
||||||
if ($(this).hasClass('section')) {
|
if ($(this).hasClass('section')) {
|
||||||
sectionID = $(this).attr('id');
|
sectionID = $(this).attr('id');
|
||||||
search($(this), $sidebarItem.parent().find('[href=#'+sectionID+']'));
|
search($(this), $sidebarItem.parent().find('[href="#'+sectionID+'"]'));
|
||||||
} else {
|
} else {
|
||||||
var $dt = $(this).children('dt');
|
var $dt = $(this).children('dt');
|
||||||
var id = $dt.attr('id');
|
var id = $dt.attr('id');
|
||||||
|
@ -48,7 +48,7 @@ jQuery(document).ready(function ($) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
search($('[itemprop=articleBody] > .section'), $('.wy-nav-side a[href=#]'));
|
search($('[itemprop=articleBody] > .section'), $('.wy-nav-side a[href="#"]'));
|
||||||
}, 0);
|
}, 0);
|
||||||
$(window).on('hashchange', function () {
|
$(window).on('hashchange', function () {
|
||||||
$('ul[data-sectionID]').each(function () {
|
$('ul[data-sectionID]').each(function () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user