git: 77187a3c40 - main - Fix global search input

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=77187a3c40eb09b10c28c4550530442c2f6e221a

commit 77187a3c40eb09b10c28c4550530442c2f6e221a
Author:     Sergio Carlavilla Delgado <[email protected]>
AuthorDate: 2022-11-05 13:08:42 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2022-11-05 13:08:42 +0000

    Fix global search input
    
    PR:             267234
    Submitted by:   grahamperrin@
---
 documentation/themes/beastie/layouts/partials/global-search.html | 4 ++--
 documentation/themes/beastie/layouts/partials/site-header.html   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/documentation/themes/beastie/layouts/partials/global-search.html b/documentation/themes/beastie/layouts/partials/global-search.html
index 8d497ec2b3..c15844fd1a 100644
--- a/documentation/themes/beastie/layouts/partials/global-search.html
+++ b/documentation/themes/beastie/layouts/partials/global-search.html
@@ -6,12 +6,12 @@
     </a>
   </div>
   <p>{{ i18n "freebsd-documentation-main-desc" }}</p>
-  <form method="get" id="search-form" action="https://duckduckgo.com/" onsubmit="document.getElementById('words').value+=' site:docs.FreeBSD.org'" name="search-form">
+  <form class="search" method="get" id="search-form" action="https://duckduckgo.com/" onsubmit="document.getElementById('global-search-input').value+=' site:FreeBSD.org'" name="search-form">
     <input type="hidden" name="ka" value="v">
     <input type="hidden" name="kt" value="v">
     <input type="hidden" name="kh" value="1">
     <input type="hidden" name="kj" value="r2">
-    <input id="words" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="" placeholder="{{ i18n "global-search-placeholder" }}">
+    <input id="global-search-input" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="" placeholder="{{ i18n "global-search-placeholder" }}">
     <span>&nbsp;</span>
   </form>
 </section>
diff --git a/documentation/themes/beastie/layouts/partials/site-header.html b/documentation/themes/beastie/layouts/partials/site-header.html
index 96341eb4ae..9c1af5071c 100755
--- a/documentation/themes/beastie/layouts/partials/site-header.html
+++ b/documentation/themes/beastie/layouts/partials/site-header.html
@@ -86,7 +86,7 @@
       </ul>
     </nav>
     <div class="search-donate-container">
-      <form class="search" method="get" id="search-form" action="https://duckduckgo.com/" onsubmit="document.getElementById('words').value+=' site:FreeBSD.org'" name="search-form">
+      <form class="search" method="get" id="search-header-form" action="https://duckduckgo.com/" onsubmit="document.getElementById('words').value+=' site:FreeBSD.org'" name="search-header-form">
         <input type="hidden" name="ka" value="v" />
         <input type="hidden" name="kt" value="v" />
         <input type="hidden" name="kh" value="1" />
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.