Opened 9 years ago

Closed 9 years ago

#6703 closed bug (worksforme)

.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,				
			});		
		}

Change History (1)

comment:1 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

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

Note: See TracTickets for help on using tickets.