This patch changes very little. The function assigned to button.onfocus is now also assigned to button.onmouseover. A similar thing is done with button.onblur and button.onmouseout.

Apparently, Safari does not handle the dynamically-registered-on-focus JavaScript function in time to be executed for the same click.

Preliminary tests suggest that everything still works in Safari 1.3.1 and a recent Firefox.

Note: My brother supplied this insight. I am not a JavaScript guru.

CommentFileSizeAuthor
upload.js.onmouse.patch.js571 bytesnjivy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven’s picture

Status: Needs review » Fixed

This doesn't seem to cause any problems on other browsers. Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)