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
|
|
@ -156,6 +156,7 @@
|
||||||
'003065520604945464838:izzukx8-qba', customSearchOptions);
|
'003065520604945464838:izzukx8-qba', customSearchOptions);
|
||||||
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
|
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
|
||||||
customSearchControl.draw('cse');
|
customSearchControl.draw('cse');
|
||||||
|
customSearchControl.setSearchStartingCallback(this, function(c, s, q) { s.setQueryAddition("{{ version|e }}"); });
|
||||||
}, true);
|
}, true);
|
||||||
</script>
|
</script>
|
||||||
{%- if include_analytics %}
|
{%- if include_analytics %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue