Hi,
as far of jquery 1.9 jQuery.browser was removed, and admin_menu get this error:
"Uncaught TypeError: Cannot read property 'msie' of undefined" (admin_menu.js - line:223)

For quick fix use this code:
change line 223:
- if ($.browser.msie && parseInt(jQuery.browser.version) == 6) {
+ if (navigator.userAgent.match(/msie [6]/i)) {

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tompagabor’s picture

Status: Active » Needs review
FileSize
531 bytes

Here is the patch.

jcisio’s picture

Version: 7.x-3.0-rc4 » 7.x-3.x-dev
Category: Task » Bug report
Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
FileSize
583 bytes

Patch works as expected. Tested with jQuery 1.10 too. Attached a more verbose patch.

tompagabor’s picture

Assigned: Unassigned » tompagabor
Issue summary: View changes

I assigned this issue to myself, os anything is happening with this issue, i do my best to fix this bug.

joelpittet’s picture

RTBC++ @tompagabor any eta on committing this to dev?

markhalliwell’s picture

Status: Reviewed & tested by the community » Closed (duplicate)
Related issues: +#1892074: remove $.browser (Remove IE 6 support)
Anonymous’s picture

@jcisio & @tompagabor, the only way that last patch works is if you add a "}" in the end:

Drupal.admin.behaviors.hover = function (context, settings, $adminMenu) {
// Hover emulation for IE 6.
- if ($.browser.msie && parseInt(jQuery.browser.version) == 6) {
+ if (navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.match(/msie 6/i)) {
$('li', $adminMenu).hover(
function () {
$(this).addClass('iehover');
}); //close function and hover!

Don't really know the state of this issue, but I still have it with all up to date and greeny.

jcisio’s picture

Status: Closed (duplicate) » Closed (won't fix)

Correct issue status.

markhalliwell’s picture

Status: Closed (won't fix) » Closed (duplicate)

This issue duplicates the efforts in #1892074: remove $.browser (Remove IE 6 support) (which were added to the project).

scott.browne’s picture

Thanks for this quick fix. I found it very quickly too! Happy me!