Skip to content

Conversation

@okendoken
Copy link

jQuery 'noData' event for autocomplete. Triggered when sql-query returns no results. It's useful to show messages, somethink like "sorry, do data found" etc.
To bind a callback function jQuery("#autocomplete_id").bind("railsAutocomplete.noData", function(){ alert('no data:('); })

Guys, please review. I find it useful for myself, hope somebody else will find it useful too.

…s no results. It's useful to show messages, somethink like "sorry, do data found" etc.

To bind a callback function
jQuery("#autocomplete_id").bind("railsAutocomplete.noData", function(){
alert('no data:(');
})
@chrise86
Copy link

chrise86 commented Nov 8, 2012

Thanks, I find it very useful! I think you should have control over what happens when no results :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants