Skip to content

jQuery 'noData' event for autocomplete.#134

Open
okendoken wants to merge 1 commit into
crowdint:masterfrom
okendoken:master
Open

jQuery 'noData' event for autocomplete.#134
okendoken wants to merge 1 commit into
crowdint:masterfrom
okendoken:master

Conversation

@okendoken

Copy link
Copy Markdown

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

chrise86 commented Nov 8, 2012

Copy link
Copy Markdown

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