[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:17:36 CEST 2013


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

--- Comment #5 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to comment #4)
> I don't have IE for testing it.
:) I would not recommend IE too for the staff client. But if you change code
related to IE, it still would be an idea to test it somehow? 

> In fact event is a global object, it is not necessary to pass it in
> parameters.
Yes, you are right (of course). As a purist, you could perhaps say that it
should be even better to refer to window.event. 
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
}

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


More information about the Koha-bugs mailing list