Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 77396e5

Browse files
efungmmistakes
authored andcommittedDec 3, 2018
Fix function name for Google Custom Search (mmistakes#1983)
fbafe58 renamed the function in the scripts file, but did not rename the call sites.
1 parent f4d4b52 commit 77396e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎_includes/search/search_form.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<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...' }}" />
66
<div id="results" class="results"></div>
77
{%- when "google" -%}
8-
<form onsubmit="return executeQuery();" id="cse-search-box-form-id">
8+
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
99
<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...' }}" />
1010
</form>
1111
<div id="results" class="results">
@@ -15,4 +15,4 @@
1515
<div class="search-searchbar"></div>
1616
<div class="search-hits"></div>
1717
{%- endcase -%}
18-
</div>
18+
</div>

‎_layouts/search.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 id="page-title" class="page__title">{{ page.title }}</h1>
2828
<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...' }}" />
2929
<div id="results" class="results"></div>
3030
{%- when "google" -%}
31-
<form onsubmit="return executeQuery();" id="cse-search-box-form-id">
31+
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
3232
<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...' }}" />
3333
</form>
3434
<div id="results" class="results">
@@ -39,4 +39,4 @@ <h1 id="page-title" class="page__title">{{ page.title }}</h1>
3939
<div class="search-hits"></div>
4040
{%- endcase -%}
4141
</div>
42-
</div>
42+
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.