Skip to main content

Search and Top Navigation

#6703 closed bug (worksforme)

Opened November 29, 2010 08:42PM UTC

Closed November 30, 2010 10:40PM UTC

.LINK() DOES NOT WORK WITH AUTOCOMPLETE

Reported by: twenzel Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:
Description

I've a textbox bound to a member via .link(). When I select a proposed item from the dropdown, the value is not delegated to the object.

// link persons
		for(var i =0;i<data.members.length;i++)
		{
			var member = data.members[i];
			
			var firstnameEdit = $("#firstname"+member.id);
			var lastnameEdit = $("#lastname"+member.id);
			var birthyearEdit = $("#birthyear"+member.id);						
			
// use firstnameEdit.link cause jQuery.link does not work
			firstnameEdit.link(member, {
				firstname:  "firstname"+member.id,
				lastname:  "lastname"+member.id,
				birthyear:  "birthyear"+member.id,
				});
				
			// autocomplete für die personen
			firstnameEdit.autocomplete({
				source: "/de/Index/Events/autocompletefirstname",
				minLength: 2,				
			});	
			
			lastnameEdit.autocomplete({
				source: "/de/Index/Events/autocompletelastname",
				minLength: 2,				
			});		
		}
Attachments (0)
Change History (1)

Changed November 30, 2010 10:40PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

Works for me. Note that the field must be blurred before the linked data will be updated.