In a hypothetical scenario, that I would like to remove focus from search input in all pages, what would you suggest?
alexandros.z ( 2012-05-14 14:58:14 -0500 )editKind of stupid question, but it's something really annoying sometimes: Can anyone tell me how can I prevent cursor being on Search Box all the time? In all pages, even in login page where user is going to type his credentials, the cursor is at search box, so in any page, users have to waste a click somewhere in the page, to take focus from search box and then be able to navigate...
I think they are more probable to want to scroll down in a page than type a search.
Probably a hack, but you can add the following
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
elements = $('.searchInput');
elements.each(function() {$(this).blur()});
});
</script>
in the pages you want to deactivate the focus in search input. If you want to disable it in all pages, you can add this code in base.html
In a hypothetical scenario, that I would like to remove focus from search input in all pages, what would you suggest?
alexandros.z ( 2012-05-14 14:58:14 -0500 )editCreate your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-05-13 09:35:28 -0500
Seen: 97 times
Last updated: May 14 '12
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
Yes, we will fix that, agreed.
Evgeny ( 2012-05-13 10:41:07 -0500 )editthanks man for being active :) it's really helpful. So, the cursor thing is not something I can easily change? It requires a lot of updates?
zaf ( 2012-05-13 10:45:58 -0500 )editToo bad, did not include this fix into the 0.7.43 release, was preoccupied with other issues, but we'll make another one very shortly. We'll be trying to release features/fixes as soon as they are ready from now on. There's been about a month between .43 and .42.
Evgeny ( 2012-05-14 14:48:57 -0500 )edit