[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 12:29:11 CEST 2013


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

--- Comment #6 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to comment #5)
> With Google, I came across this example for a cross-browser solution:
> 
> element.onclick = doSomething;
> function doSomething(e) {
> 	if (!e) var e = window.event;
> 	// e gives access to the event in all browsers
> }

Yep I think the code can be improved, but the goal of this patch is only to
factorize the code.
When this patch will be pushed, it will be easy to improve it: there will be
only 1 place to change :)
Don't you agree with me?

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


More information about the Koha-bugs mailing list