X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=_static%2Fsearchtools.js;h=5ff318066d83f9da7a5a97f34f7d78e1a7696c7c;hb=a1703e82caca2896043069bf8e9db85451e7f3d5;hp=edef8acf5c1bc6e87a5738fb9d7e9a3f12721da5;hpb=b997cdd3e15a2c10dbbdf3383a64bfb0a405461e;p=awesomized%2Flibmemcached diff --git a/_static/searchtools.js b/_static/searchtools.js index edef8acf..5ff31806 100644 --- a/_static/searchtools.js +++ b/_static/searchtools.js @@ -4,7 +4,7 @@ * * Sphinx JavaScript utilities for the full-text search. * - * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ @@ -36,10 +36,8 @@ if (!Scorer) { // query found in title title: 15, - partialTitle: 7, // query found in terms - term: 5, - partialTerm: 2 + term: 5 }; } @@ -58,14 +56,6 @@ var Search = { _queued_query : null, _pulse_status : -1, - htmlToText : function(htmlString) { - var htmlElement = document.createElement('span'); - htmlElement.innerHTML = htmlString; - $(htmlElement).find('.headerlink').remove(); - docContent = $(htmlElement).find('[role=main]')[0]; - return docContent.textContent || docContent.innerText; - }, - init : function() { var params = $.getQueryParameters(); if (params.q) { @@ -130,7 +120,7 @@ var Search = { this.out = $('#search-results'); this.title = $('

' + _('Searching') + '

').appendTo(this.out); this.dots = $('').appendTo(this.title); - this.status = $('

 

').appendTo(this.out); + this.status = $('

').appendTo(this.out); this.output = $('