Fix #778: Fix "hide search matches" link on pages linked by search.

This commit is contained in:
Georg Brandl 2011-10-02 17:50:37 +02:00
parent 452a41ba8a
commit 975f9c7eaa
2 changed files with 4 additions and 2 deletions

View File

@ -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)
============================

View File

@ -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');
},