Hi,

Just installed the module on a new Drupal 7 site with the Navbar module. I noticed the module did not work with jQuery 1.10 as The $.browser method has been removed as of jQuery 1.9. So create a workaround. http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed

So I have created a patch for this and updated the relevant jQuery libraries. There was a similar issue noted here: https://www.drupal.org/node/2846849 but thought it was more relevant to do a blanket jQuery 1.10 fix.

This fix will also work with jQuery 1.9 as well.

Thanks,
Chris

Comments

c_archer created an issue. See original summary.

c_archer’s picture

Title: Support for Jquery 10 » Support for jQuery 1.10
Related issues: +#2846849: Uncaught TypeError: Cannot read property 'version' of undefined
StatusFileSize
new893 bytes
c_archer’s picture

Status: Active » Needs review
basquet_57’s picture

StatusFileSize
new619 bytes

We are also interested in getting this fixed.
The patch itself gave me errors, but cleaning out the first unnecessary part works fine.

Attaching modified file.
Tested and working with JQuery versions 1.5-1.10

c_archer’s picture

Your patch looks okay to me.

kingandy’s picture

Patch works for me ONLY if I have jQuery aggregation disabled. For some reason when aggregated the "Cannot read property 'version' of undefined" error message still appears; the menu pops up but does not have the transition effect.

Installing the latest BGIframe release in the libraries folder as described in #2846849: Uncaught TypeError: Cannot read property 'version' of undefined fixed the issue, in combination with this patch.

avpaderno’s picture

Title: Support for jQuery 1.10 » The module doesn't work with jQuery 1.10
Version: 7.x-2.5 » 7.x-2.x-dev
astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.