mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #778: Fix "hide search matches" link on pages linked by search.
This commit is contained in:
parent
452a41ba8a
commit
975f9c7eaa
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
Release 1.0.9 (in development)
|
||||
==============================
|
||||
|
||||
* #778: Fix "hide search matches" link on pages linked by search.
|
||||
|
||||
|
||||
Release 1.0.8 (Sep 23, 2011)
|
||||
============================
|
||||
|
@ -187,7 +187,7 @@ var Documentation = {
|
||||
}, 10);
|
||||
$('<li class="highlight-link"><a href="javascript:Documentation.' +
|
||||
'hideSearchWords()">' + _('Hide Search Matches') + '</a></li>')
|
||||
.appendTo($('.sidebar .this-page-menu'));
|
||||
.appendTo($('.sphinxsidebar .this-page-menu'));
|
||||
}
|
||||
},
|
||||
|
||||
@ -213,7 +213,7 @@ var Documentation = {
|
||||
* helper function to hide the search marks again
|
||||
*/
|
||||
hideSearchWords : function() {
|
||||
$('.sidebar .this-page-menu li.highlight-link').fadeOut(300);
|
||||
$('.sphinxsidebar .this-page-menu li.highlight-link').fadeOut(300);
|
||||
$('span.highlighted').removeClass('highlighted');
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user