B
B
Bogdan Pasechnik2011-09-08 01:22:30
JavaScript
Bogdan Pasechnik, 2011-09-08 01:22:30

ElFinder serious bug with jQuery autocomplete events?

In the official example file elfinder.php.html I add the following line

$('#test_id').autocomplete({source:[], change:function(){ alert(1); }});<br/>

And at the bottom of the page
<input type="text" id="test_id">
In theory, the alert should pop up only when I edit the test field and it loses focus. This is how it works if elFinder is not connected to the page. And with it, an alert pops up when you click on any element of the page. Please let me know if there is any way to solve this problem.
Tried in browser firefox 6.0.2 and google chrome 13.0.782.220
Thank you for your attention.

PS If I don't connect elFinder everything works as it should. When I edit a field and it loses focus, an alert pops up. And when I connect elFinder, the alert starts popping up when clicking on any element of the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sl_bug, 2011-09-08
@sl_bug

The change event is called exactly when editing is over, and to get it the way you want it, you need to try keypress. At least that's how I understood it when I did it :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question