Focus on search field doesn't work as expected

Please report bugs here!

Moderator: Thorsten

Post Reply
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Focus on search field doesn't work as expected

Post by calande »

Hi Thorsten,

I'm working on a new look and feel and I found a bug. In the template there's a call to a JS function:

Code: Select all

<body dir="{dir}" onload="javascript:focusOnSearchField();">
Here's this function:

Code: Select all

function focusOnSearchField()
{
    if (document.getElementById('searchfield')) {
        document.getElementById('searchfield').focus();
    }
}
But in the source code the search field is named differently:

Code: Select all

<input type="text" name="search" id="suchbegriff" size="40" />
That's it for now! :wink:
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please add a bug report on http://bugs.phpmyfaq.de and we'll fix it for 2.0.4.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

Ok, done :)
Post Reply