Bug #14111
closed
Added by Lars Houmark over 20 years ago.
Updated over 18 years ago.
Description
When hitting enter in the 'Look up' field (after typing in the extension key) the page just reloads
Go the the Extension Repository
Type in css_styled_content in the 'Look up' field
Hit enter instead of the 'Connect to the online repository' button
(issue imported from #M17)
Files
The Bug should be fixed with providing a JS that sets the correct focus on the page.
file typo3/mod/tools/em/index.php: (in latest 3.7. cvs)
there was no destination in the form given (action="").
I have inserted a new form and edited the javascript a bit from line 825 on. (line 824 can be deleted as it is not used anaymore - I forgot this in the patch) I have attached a diff.
Those are the new lines:
$content.= '<br /></form>
<form action="index.php" method="get" name="ter_form" onSubmit="document.ter_form[\'ter_search\'].valu
e=escape(document.ter_form[\'_lookUp\'].value);document.ter_form[\'ter_connect\'].value=1;">
<input type="hidden" name="ter_search" value="" />
<input type="hidden" name="ter_connect" value="" />
Look up: <input type="text" name="_lookUp" value="" />
<input type="submit" value="Connect to online repository" />';
Reminder sent to stucki
It seems to be this bug is resolved (tested on current CVS version)
I don't know why it's now working but it's still not fixed in the clean way. I will keep this opened and add the patch of case2020 later...
I just tested this with 3.8.0-dev and Firefox, pressing enter doesn't work, whereas clicking the submit button does work.
Thanks Karsten, so this is still open...
Did anybody test if the patch by case2020 works?
BTW @case2020: Please always attach unified format patches - they are much more useable for us...
In version 3.8.0 final hitting ENTER works in mozilla firefox 1.0.4, but still not in IE 6.0 (and probably below).
Also available in: Atom
PDF