mirror of https://github.com/zulip/zulip.git
Disable autocomplete on the search box.
Documentation variously says to disable on the form or on the input box, e.g.: https://developer.mozilla.org/en-US/docs/How_to_Turn_Off_Form_Autocompletion http://msdn.microsoft.com/en-us/library/ms533486%28VS.85%29.aspx However, at least in Chrome, disabling on the form produces an ugly "This webpage has disabled autocomplete" message if you try to arrow down on an input box as if there were suggestions, so I've just put it on the input element. This still works on recent versions of Safari and Firefox. (imported from commit b47f438d6e1d930d7d6871070858c97c6479a0ae)
This commit is contained in:
parent
bc4447f9f8
commit
faca281a4e
|
@ -5,7 +5,7 @@
|
||||||
<div id="searchbox" class="always_in_view">
|
<div id="searchbox" class="always_in_view">
|
||||||
<form class="form-search form-inline">
|
<form class="form-search form-inline">
|
||||||
<div id="search_arrows" class="input-append">
|
<div id="search_arrows" class="input-append">
|
||||||
<input class="search-query" id="search" type="text" placeholder="Search…">
|
<input class="search-query" id="search" type="text" placeholder="Search…" autocomplete="off">
|
||||||
<button class="btn search_button search_button_middle" type="button" id="search_up" onclick="search_button_handler(true);"><i class="icon-chevron-up"></i></button>
|
<button class="btn search_button search_button_middle" type="button" id="search_up" onclick="search_button_handler(true);"><i class="icon-chevron-up"></i></button>
|
||||||
<button class="btn search_button search_button_middle" type="button" id="search_down" onclick="search_button_handler(false);"><i class="icon-chevron-down"></i></button>
|
<button class="btn search_button search_button_middle" type="button" id="search_down" onclick="search_button_handler(false);"><i class="icon-chevron-down"></i></button>
|
||||||
<button class="btn search_button" type="button" id="search_exit" onclick="clear_search();"><i class="icon-remove"></i></button>
|
<button class="btn search_button" type="button" id="search_exit" onclick="clear_search();"><i class="icon-remove"></i></button>
|
||||||
|
|
Loading…
Reference in New Issue