Adding the current doc version as an additional parameter for the search
This commit is contained in:
parent
f2b077c31f
commit
90c7cf7fdf
1 changed files with 5 additions and 4 deletions
|
|
@ -152,10 +152,11 @@
|
|||
<script type="text/javascript">
|
||||
google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
|
||||
google.setOnLoadCallback(function() {
|
||||
var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl(
|
||||
'003065520604945464838:izzukx8-qba', customSearchOptions);
|
||||
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
|
||||
customSearchControl.draw('cse');
|
||||
var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl(
|
||||
'003065520604945464838:izzukx8-qba', customSearchOptions);
|
||||
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
|
||||
customSearchControl.draw('cse');
|
||||
customSearchControl.setSearchStartingCallback(this, function(c, s, q) { s.setQueryAddition("{{ version|e }}"); });
|
||||
}, true);
|
||||
</script>
|
||||
{%- if include_analytics %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue