Commit 6d4dfd71 authored by fred's avatar fred
Browse files

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() { ...@@ -422,8 +422,8 @@ $(function() {
return false; return false;
}); });
if ($('input#id_q').val() == '') { if ($('#search-form.big input#id_q').val() == '') {
$('input#id_q').focus(); $('#search-form.big input#id_q').focus();
} }
$('#ticker li:not(:first)'); $('#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