Opened 13 years ago
Closed 13 years ago
#6608 closed bug (invalid)
[autocomplete] result function fire 2 times
Reported by: | maurox | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.2 | |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi, i have this autocomplete:
$('#str_cerca_auto').autocomplete(
'/handler/get_articoli_suggeritore.ashx', {
delay: 5, minChars: 1, matchSubset: false, matchContains: false, cacheLength: 10, autoFill: false
}
);
$('#str_cerca_auto').result(function (event, data, formatted) {
if (data) {
if (data[1] != "0") {
aggiungi_costo(data[1]);
}
}
})
search works fine, but when i click on 1 result the function "aggiungi_costo(n)" fire two times.
i use Firefox 3
Note: See
TracTickets for help on using
tickets.
This is the jQuery core bug tracker, autocomplete plugin bugs should not be reported here. Please ask on the jQuery forum.