Page 1 of 1

[SOLVED] Cannot use 'enter' on search bar

Posted: Wed Oct 19, 2011 1:42 pm
by rize
On my site, when i use enter to search keywords, it doesn't work. I need to click on the search image.

What could be the problem? this is the site:
http://goo.gl/HR8RM

Re: Cannot use 'enter' on search bar

Posted: Wed Oct 19, 2011 10:38 pm
by uksitebuilder
because search has been moved from the div with an id="header", the javascript needs editing

search now resides in a div with id="search"

open: catalog/view/javascript/common.js

find

Code: Select all

	$('#header input[name=\'filter_name\']').keydown(function(e) {
change to

Code: Select all

	$('#search input[name=\'filter_name\']').keydown(function(e) {

Re: [SOLVED] Cannot use 'enter' on search bar

Posted: Thu Oct 20, 2011 8:42 am
by rize
Thank you!

Re: [SOLVED] Cannot use 'enter' on search bar

Posted: Thu Nov 17, 2011 11:40 pm
by incan
Were can I find this function in 1.4.9?

Re: [SOLVED] Cannot use 'enter' on search bar

Posted: Fri Nov 18, 2011 12:22 am
by uksitebuilder
catalog/view/theme/default/template/common/header.tpl

Re: [SOLVED] Cannot use 'enter' on search bar

Posted: Fri Nov 18, 2011 6:39 pm
by incan