Skip to content

Commit 108d6fb

Browse files
committed
some fixed about search input on navbar
1 parent 30b5009 commit 108d6fb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<link rel="stylesheet" href="{{ assetsPath }}/css/docs/basis.min.css?v={{ 'now' | date: "%s"}}" />
6363
<link rel="stylesheet" href="{{ assetsPath }}/css/docs/footer.css" />
6464

65-
{%- if site.searchIndexName -%}
65+
{%- if site.searchIndexName or site.needSearchIndex -%}
6666
<script type="text/javascript" src="{{ assetsPath }}/lib/algolia/algoliasearch-lite.umd.js"></script>
6767
<script type="text/javascript" src="{{ assetsPath }}/lib/algolia/instantsearch.production.min.js"></script>
6868
<link rel="stylesheet" href="{{ assetsPath }}/lib/algolia/satellite.min.css">

_includes/search-input.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@
178178

179179
$(".allResults a").on("click", function() {
180180
let product = getUrlVars(document.URL)["product"] ? getUrlVars(document.URL)["product"] : getCurrentUrlProductName(document.URL)
181+
if (["dlr", "dce", "ddn", "dcv", "dcp"].indexOf(product) >= 0) {
182+
product = "dcv"
183+
}
181184
if (["dbr", "dlr", "dce", "dcp", "dcv", "ddn"].indexOf(product) >= 0) {
182185
let lang = getCurrentUrlLang(document.URL, true)
183186
let reporType = ""

_layouts/default-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
{%- include auto-version-list.html -%}
9292
{%- endif -%}
9393
</div>
94-
{%- unless site.searchIndexName -%}
94+
{%- unless site.searchIndexName or site.needSearchIndex -%}
9595
<div class="docSearchPart" style="margin-top: 30px;">
9696
<input id="txtSearch" class="search" type="text">
9797
</div>

0 commit comments

Comments
 (0)