Commit 4c5a299e authored by Marcel Korpel's avatar Marcel Korpel Committed by Lukas Fleischer
Browse files

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: default avatarMarcel Korpel <marcel.korpel@gmail.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 9cde6b05
......@@ -57,7 +57,7 @@ $per_page = array(50, 100, 250);
</div>
<div>
<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>
<label for="id_out_of_date"><?= __('Out of Date'); ?></label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment