Bug Tracker

Modify

Ticket #7655 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

.link() does not work with autocomplete

Reported by: twenzel Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

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

comment:1 Changed 2 years ago by snover

  • Status changed from new to closed
  • Resolution set to invalid

This is not the jQuery UI bug tracker. Please read the big red box on the ticket reporting page for information on where to go.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.