[autocomplete] rely on autocomplete-script to disable browser built-in where appropriate

This commit is contained in:
Shish 2023-12-26 12:53:46 +00:00
parent d04ec4296b
commit 7617daa15c
6 changed files with 8 additions and 8 deletions

View file

@ -38,7 +38,7 @@ EOD
$search_html = "
<div class='space' id='search'>
<form action='".search_link()."' method='GET'>
<input name='search' size='30' type='search' value='' class='autocomplete_tags' autofocus='autofocus' autocomplete='off' />
<input name='search' size='30' type='search' value='' class='autocomplete_tags' autofocus='autofocus' />
<input type='hidden' name='q' value='/post/list'>
<input type='submit' value='Search'/>
</form>

View file

@ -86,7 +86,7 @@ and of course start organising your images :-)
$h_search_link = search_link();
$h_search = "
<p><form action='$h_search_link' method='GET'>
<input type='search' name='search' value='$h_search_string' placeholder='Search' class='autocomplete_tags' autocomplete='off' />
<input type='search' name='search' value='$h_search_string' placeholder='Search' class='autocomplete_tags' />
<input type='hidden' name='q' value='/post/list'>
<input type='submit' value='Find' style='display: none;' />
</form>

View file

@ -48,7 +48,7 @@ class RandomListTheme extends Themelet
$h_search_link = make_link("random");
$h_search = "
<p><form action='$h_search_link' method='GET'>
<input type='search' name='search' value='$h_search_string' placeholder='Search random list' class='autocomplete_tags' autocomplete='off' />
<input type='search' name='search' value='$h_search_string' placeholder='Search random list' class='autocomplete_tags' />
<input type='hidden' name='q' value='/random'>
<input type='submit' value='Find' style='display: none;' />
</form>

View file

@ -20,8 +20,8 @@ class TagEditTheme extends Themelet
$html = "
" . make_form(make_link("tag_edit/replace")) . "
<table class='form'>
<tr><th>Search</th><td><input type='text' name='search' class='autocomplete_tags' autocomplete='off'></tr>
<tr><th>Replace</th><td><input type='text' name='replace' class='autocomplete_tags' autocomplete='off'></td></tr>
<tr><th>Search</th><td><input type='text' name='search' class='autocomplete_tags'></tr>
<tr><th>Replace</th><td><input type='text' name='replace' class='autocomplete_tags'></td></tr>
<tr><td colspan='2'><input type='submit' value='Replace'></td></tr>
</table>
</form>

View file

@ -157,7 +157,7 @@ class UploadTheme extends Themelet
TR(
TD(["colspan" => $tl_enabled ? 2 : 4], DIV(["name" => "canceldata{$i}[]","style" => "display:inline;margin-right:5px;font-size:15px;visibility:hidden;","onclick" => "$(\"input[name='data{$i}[]']\")[0].value='';updateTracker();"], ""), INPUT(["type" => "file", "name" => "data{$i}[]", "accept" => $accept, "multiple" => true])),
$tl_enabled ? TD(["colspan" => "2"], INPUT(["type" => "text", "name" => "url{$i}"])) : emptyHTML(),
TD(["colspan" => "2"], INPUT(["type" => "text", "name" => "tags{$i}", "class" => "autocomplete_tags", "autocomplete" => "off"])),
TD(["colspan" => "2"], INPUT(["type" => "text", "name" => "tags{$i}", "class" => "autocomplete_tags"])),
)
);
}
@ -328,7 +328,7 @@ class UploadTheme extends Themelet
$form->appendChild(
emptyHTML(
INPUT(["id" => "data[]", "name" => "data[]", "size" => "16", "type" => "file", "accept" => $accept, "multiple" => true]),
INPUT(["name" => "tags", "type" => "text", "placeholder" => "tagme", "class" => "autocomplete_tags", "required" => true, "autocomplete" => "off"]),
INPUT(["name" => "tags", "type" => "text", "placeholder" => "tagme", "class" => "autocomplete_tags", "required" => true]),
INPUT(["type" => "submit", "value" => "Post"]),
)
);

View file

@ -68,7 +68,7 @@ class ViewImageTheme extends Themelet
$h_search = "
<p><form action='".make_link()."' method='GET'>
<input type='hidden' name='q' value='/post/list'>
<input type='search' name='search' placeholder='Search' class='autocomplete_tags' autocomplete='off'>
<input type='search' name='search' placeholder='Search' class='autocomplete_tags'>
<input type='submit' value='Find' style='display: none;'>
</form>
";