Closed (fixed)
Project:
At.js
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2014 at 09:38 UTC
Updated:
11 Feb 2017 at 18:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
TheMGamer commentedAnyone?
Comment #2
heylookalive commentedApologies for the wait, are you running jquery_update at all? If so what version? Also which OS and browser?
Comment #3
TheMGamer commentedjQuery Update with jQuery version v1.7 (I tried also 1.8, 1.10)
Mozilla Firefox on Windows 7.
I made the test in a clean drupal 7 enviroment with no other modules. Just the core and the required modules and scripts for at.js
Comment #4
TheMGamer commentedI tested again. This time, the autocomplete still does not show but I get no errors in the browser's console. Can you reproduce this?
Comment #5
JakeWilund commentedI am getting the following error in the browser console:
Uncaught TypeError: undefined is not a function
Autocomplete is currently not triggering. Libraries installed per the readme's instructions.
Comment #6
heylookalive commentedHey, I've replicated the error but it's not immediately obvious as to what's going wrong. I expect that the library maintainer has tweaked how something works and is breaking things as a result. Right not I don't have any time to fix this but will loop back as soon as possible. Sponsorship would also help if people are desperate.
Comment #7
ankitsingh0188Hey,
I have completed the autocomplete on the basis of Fields. Earlier it used to work for property only.
Autocomplete with fields it throws the error (TypeError: d[c] is undefined) is undefined.
I have created a patch for that and test it. It works for me.
Thanks!
Comment #8
crazyrohila commentedJust to add details for above patch:
I got the same issue when using this module (7.x-1.x-dev) with tinymce. What I found is in sorter function of atjs search_key is "
" in case of property but when we select field as search key in configuration then "field:" is going as search_key and the listener has only "" as object property. eg. I select property name as search key, so listener has {search_key: 'name'} and results also has "name" value. but If I select display_name (a user field) as search key then listener has {search_key: 'field:field_display_name'} but results has field_display_name as key in objects. so it's showing error d[c] is undefined where d is result and c is 'field:field_display_name'. So in module when module is settings js listener variable, it replaces 'property:' with '' (line #237) and we get only name of property same we need to do for fields. So what @Ankit did above solved our problem and we can search with user fields.
Hope this makes sense.
Comment #10
david.hughesThanks for the patch - just applied it.