When using the Context UI inline editor, JavaScript will generate errors if using jQuery 1.9 or greater. This is due to $.browser no longer being supported.

The better long term solution is to replace the code with feature detection rather than browser detection, but the attached patch should serve as a temporary replacement until that is done.

I'd appreciate any feedback, thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ron_s created an issue. See original summary.

hass’s picture

Status: Needs review » Needs work

Please rewrite to feature detection so we are finally done.

ron_s’s picture

Ok, see attached patch.

The $.browser calls in editStart and editFinish must continue to stay in the code, because they are specific to a bug in jQuery UI 1.6.

We have moved them inside the conditional so they are never accessed if someone is running a newer version.

ron_s’s picture

Status: Needs review » Needs work

After further testing, we realized some CSS adjustments are needed to support this approach. Will post an updated patch shortly.

ron_s’s picture

This should take care of the issue. Just needed some extra CSS to ensure standard Drupal contextual links are still accessible.

ron_s’s picture

Sorry, one additional update. Forgot to copy over two edits to handle contextual links when a browser does not support the pointer-events feature. Thanks.