[Koha-bugs] [Bug 9507] Some code used to prevent form from being unexpectedly submitted is duplicated

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 22 09:44:40 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9507

--- Comment #4 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to comment #3)
> Just a question:
> 
> +function IEEventHandler_KeyDown() {
> +    if (event.keyCode == 13 && event.srcElement.type != 'textarea' &&
> event.srcElement.type != 'submit')
> +        return false;
> +    return true;
> +}
> 
> But am I missing a parameter here?

Humm, I just factorize the code, so it is not a regression. I don't have IE for
testing it.
In fact event is a global object, it is not necessary to pass it in parameters.
This code should work I think.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list