On Fri, 10 Jul 2015 at 16:24:06, Marcel Korpel wrote:
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> --- web/template/pkg_search_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 2d03cfa..404d16e 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -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"' : '' ?> />
Huh? Doesn't this disable the autofocus on the package search page as well?
</div> <div> <label for="id_out_of_date"><?= __('Out of Date'); ?></label> -- 2.4.5