Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery 'noData' event for autocomplete. #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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