Commit 6d4dfd71 authored by fred's avatar fred

js: only focus search input on main search page

On mobile this will pop the keyboard up and we don't want that to happen
on every pages.
parent 7328d841
......@@ -422,8 +422,8 @@ $(function() {
return false;
});
if ($('input#id_q').val() == '') {
$('input#id_q').focus();
if ($('#search-form.big input#id_q').val() == '') {
$('#search-form.big input#id_q').focus();
}
$('#ticker li:not(:first)');
......
Markdown is supported
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