Skip to content
Snippets Groups Projects
Commit e7320531 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

icone de recherche qui disparait

parent afa35bff
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
$.widget("ose.intervenantRecherche", { $.widget("ose.intervenantRecherche", {
rechercher: function (critere) rechercher: function (critere, stopFunc)
{ {
var that = this; var that = this;
...@@ -17,6 +17,8 @@ $.widget("ose.intervenantRecherche", { ...@@ -17,6 +17,8 @@ $.widget("ose.intervenantRecherche", {
that.getElementRecherche().html(msg + xhr.status + " " + xhr.statusText + xhr.responseText); that.getElementRecherche().html(msg + xhr.status + " " + xhr.statusText + xhr.responseText);
} }
that.getElementLoading().hide(); that.getElementLoading().hide();
that.getElementCritere().autocomplete();
stopFunc();
}); });
} }
}, },
...@@ -26,10 +28,9 @@ $.widget("ose.intervenantRecherche", { ...@@ -26,10 +28,9 @@ $.widget("ose.intervenantRecherche", {
var that = this; var that = this;
this.getElementCritere().autocomplete({ this.getElementCritere().autocomplete({
source: function (event, ui) source: function (event, stopFunc)
{ {
that.rechercher(event.term); that.rechercher(event.term, stopFunc);
return {};
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment