Receiving the following error with with current dev:

TypeError: $.browser is undefined

Upon searching this issue queue, I located #453048: HS select becomes disabled after refreshing page in Firefox which led me to the fix of simply commenting out the lines added in as a result of that issue:

if ($.browser.mozilla) {
  $('#hierarchical-select-'+ hsid +'-wrapper').parents('form').attr('autocomplete', 'off');
}

I need to test some more and make sure that doesn't introduce any other errors. If it doesn't, I'll post a patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikran’s picture

Status: Active » Needs review
FileSize
691 bytes

I'll be testing too. I rolled this into a patch

lklimek’s picture

This issue is specific to jQuery 1.9+.

My approach here is to replace $.browser with navigator.userAgent.indexOf("Firefox") . And $.browser occurs in the code one more time.

See patch against 7.x-3.0-alpha6 in the attachment.

stefan.r’s picture

Status: Needs review » Fixed

  • stefan.r committed 36088e0 on 7.x-3.x authored by lklimek
    Issue #2315453 by mikran, lklimek: js error: Console error: TypeError...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.