Skip to content

Commit

Permalink
Fix function name for Google Custom Search (#1983)
Browse files Browse the repository at this point in the history
fbafe58 renamed the function in the
scripts file, but did not rename the call sites.
  • Loading branch information
efung authored and mmistakes committed Dec 3, 2018
1 parent 6a93cea commit f4f6e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _includes/search/search_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<input type="text" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
<div id="results" class="results"></div>
{%- when "google" -%}
<form onsubmit="return executeQuery();" id="cse-search-box-form-id">
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
<input type="text" id="cse-search-input-box-id" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
</form>
<div id="results" class="results">
Expand All @@ -15,4 +15,4 @@
<div class="search-searchbar"></div>
<div class="search-hits"></div>
{%- endcase -%}
</div>
</div>
4 changes: 2 additions & 2 deletions _layouts/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 id="page-title" class="page__title">{{ page.title }}</h1>
<input type="text" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
<div id="results" class="results"></div>
{%- when "google" -%}
<form onsubmit="return executeQuery();" id="cse-search-box-form-id">
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
<input type="text" id="cse-search-input-box-id" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
</form>
<div id="results" class="results">
Expand All @@ -39,4 +39,4 @@ <h1 id="page-title" class="page__title">{{ page.title }}</h1>
<div class="search-hits"></div>
{%- endcase -%}
</div>
</div>
</div>

0 comments on commit f4f6e32

Please sign in to comment.