Hello,

with latest jQuery update dev release, with jQuery UI - v1.10.2 autocomplete deluxe fields don't render. Chrome inspector reports this:

Uncaught TypeError: Object [object Object] has no method 'menu'

Cheers

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lux Delux’s picture

Turns out jquery Update, when using the new library, was not adding UI Menu component.

Manually including it on my admin pages solved the problem.

I'll report there, you can close this.

Cheers

queenvictoria’s picture

I've patched jQuery update over here to fix that. You'll need to flush caches afterward.
http://drupal.org/node/2002568#comment-7447018

But I was left with a different problem.
jqObject.data("autocomplete") doesn't exist and therefore I can't override the _resizeMenu method (which does still exist in ui.autocomplete--I've checked). So here is a patch for that. Needs work I suspect.

queenvictoria’s picture

Status: Active » Needs work
queenvictoria’s picture

Status: Needs work » Needs review
FileSize
429 bytes

I've had another go at this and used the same code style as the renderItem monkey patch. Please review.

MauPalantir’s picture

I applied the patch but autocomplete_deluxe still had a similar problem on line 122, with function _renderItem(). So I had to patch it like above. Now it works with latest dev jQuery Update. Attached the patch.

sepgil’s picture

Status: Needs review » Needs work

Your patch doesn't apply since it seems to be a diff from core git and not acdx...

pjcdawkins’s picture

Status: Needs work » Needs review
FileSize
554 bytes

Try this

M@ster’s picture

queenvictoria thank you for patch. I'ts work

brockfanning’s picture

#7 is working for me, on a site running jQuery 1.8.

pjcdawkins’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
sepgil’s picture

The patch works, but JQuery 1.8 produces another bug: #1881120: wrong position of ui-element in jquery version 1.8
So it would be nice if could fix that before committing this patch.

ckng’s picture

#7 works for me

fullerja’s picture

Patch in #7 worked nicely for me. Can this get committed rather than wait for #1881120: wrong position of ui-element in jquery version 1.8?

claudiu.cristea’s picture

This works, why not committing?

Nicolas Bouteille’s picture

+1 RTBC

rcodina’s picture

Please, also checkout the patch here: https://www.drupal.org/node/2276111

sepgil’s picture

Status: Reviewed & tested by the community » Fixed

I committed the patch from #2276111: Uncaught TypeError: Cannot read property 'msie' of undefined (jquery 1.10), so this issue should be fixed to. Thanks for all the contributions.

Status: Fixed » Closed (fixed)

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