The JavaScript throws an error when I try to add and remove an item using Firefox.

Error

Timestamp: 12/10/2012 08:28:49 PM
Error: ReferenceError: event is not defined
Source File: http://drupalcode.org/project/fapi_multiselect.git/blob_plain/aa06fb97cd75abdf2cda7d334de142706abd69c6:/fapi_multiselect.js
Line: 84

Here's the isolated JS bug.
Firefox doesn't have the global event var.

CommentFileSizeAuthor
fapi_select-firefox_event_bug.patch831 bytesalbo87
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

WorldFallz’s picture

Title: Add and remove item on Firefox » js error: event is not defined
Status: Active » Reviewed & tested by the community

Just ran into this. Patch fixes the error (which was introduced from #1175070: Prevent jumping back to top of page after clicking left/right).