Closed mzedeler closed 11 years ago
Note: I was not able to reproduce original bug as described above: I would only receive two setMessage
's for each search.
Seconds thoughts; in #search
, maybe the correct location to call Loader is NOT in handleResults()
handler but in switch
section when action has been determined?
Tested. The problem can only be reproduced when you choose a suggestion from the drop down menu,
Added $("#searchterm").unbind "autocompleteselect"
, (event, ui) at line before bind
. Solved the problem quickly.
This has been solved by unbinding clickhandler before binding. Apparently this is not best practice. However, someone who knows best practice should have a go at it at a later time. Closed.
To reproduce:
Typesomething from the autocomplete dropdowninto the free text search fieldand press enter.Expected: in the log,
setMessage
should only appear once every time a search is executed. Actual: in the log,setMessage
appears once for every time a previous search has been run, thus executing a new search now, will result in 7setMessage
messages.