Post by ibdesign » Wed Feb 17, 2010 6:50 am

I noticed that the Enter Key was not activating the Search Module in the page header. I found the error and figured I would post the fix here.

In the header.tpl file, the div containing the search module is named "search"

Code: Select all

Line 46 <div id="search">
At the bottom of the header.tpl file, the javascript activating the search with the Enter Key is calling a div named "module_search".

Code: Select all

Line 163  $('#module_search input').keydown(function(e) {
Line 164  	if (e.keyCode == 13) {
Line 165  		moduleSearch();
Line 166  	}
Line 167  });
It should be changed to

Code: Select all

Line 163  $('#search input').keydown(function(e) {
Line 164  	if (e.keyCode == 13) {
Line 165  		moduleSearch();
Line 166  	}
Line 167  });
Last edited by i2Paq on Thu Feb 18, 2010 3:46 pm, edited 1 time in total.
Reason: Title fix

Newbie

Posts

Joined
Wed Feb 17, 2010 6:35 am

Post by Miguelito » Thu Feb 18, 2010 2:36 pm

Yeah this was noticed right after 1.4.0 was released and fix for that was also released soon. The same problem is also with Admin side in the product search and there's a fix for that also (search the forum).

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm
Who is online

Users browsing this forum: No registered users and 1 guest