Title: JS Bug with Firefox
Last modified: August 21, 2016

---

# JS Bug with Firefox

 *  [Faldrian](https://wordpress.org/support/users/faldrian/)
 * (@faldrian)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/js-bug-with-firefox/)
 * Hi!
 * There is a bug (at least) in “wp-simple-galleries/wp-simple-gallery-admin.js”:
 * The first argument of the callback-functions should be “event” to be compatible
   with firefox. Chromium seems to add this itself, so this may have been overlooked
   while developing
 * From:
    $(‘#wpsimplegallery_upload_button’).on(‘click’, function() {
 * Change to:
    $(‘#wpsimplegallery_upload_button’).on(‘click’, function(event) {
 * This may also be required in other callbacks of your plugin.
 * Regards,
    Faldrian
 * [http://wordpress.org/plugins/wp-simple-galleries/](http://wordpress.org/plugins/wp-simple-galleries/)

The topic ‘JS Bug with Firefox’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-simple-galleries_7f8da9.svg)
 * [WP Simple Galleries](https://wordpress.org/plugins/wp-simple-galleries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-galleries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-galleries/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-galleries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-galleries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-galleries/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Faldrian](https://wordpress.org/support/users/faldrian/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/js-bug-with-firefox/)
 * Status: not resolved