mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Only autofocus search field on the package search page
This needs to be disabled on package pages to be able to add a URL fragment after comment editing. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
9cde6b0566
commit
4c5a299e80
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ $per_page = array(50, 100, 250);
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_q"><?= __("Keywords"); ?></label>
|
<label for="id_q"><?= __("Keywords"); ?></label>
|
||||||
<input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' autofocus="autofocus" />
|
<input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' <?= (empty($tokens[1])) ? 'autofocus="autofocus"' : '' ?> />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_out_of_date"><?= __('Out of Date'); ?></label>
|
<label for="id_out_of_date"><?= __('Out of Date'); ?></label>
|
||||||
|
|
Loading…
Add table
Reference in a new issue