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

Merge branch 'master' of https://git.unicaen.fr/open-source/OSE

parents 42c70e8c 5670df14
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@
<div class="critere">
Saisissez le nom suivi éventuellement du prénom (2 lettres au moins) :<br/>
<input id="critere" class="form-control input" type="text" style="width:15em;display:inline"/>
<span class="loading" id="intervenant-recherche-loading" style="display: none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
</div>
<div class="recherche" data-url="<?= $this->url('intervenant/recherche') ?>">
......
......@@ -9,14 +9,12 @@ $.widget("ose.intervenantRecherche", {
var that = this;
if (critere.length > 1) {
that.getElementLoading().show();
that.getElementRecherche().refresh({critere: critere}, function (response, status, xhr)
{
if (status == "error") {
var msg = "Désolé mais une erreur est survenue: ";
that.getElementRecherche().html(msg + xhr.status + " " + xhr.statusText + xhr.responseText);
}
that.getElementLoading().hide();
that.getElementCritere().autocomplete();
stopFunc();
});
......@@ -39,5 +37,4 @@ $.widget("ose.intervenantRecherche", {
getElementCritere: function () { return this.element.find("#critere"); },
getElementRecherche: function () { return this.element.find('.recherche'); },
getElementLoading: function () { return this.element.find('#intervenant-recherche-loading'); },
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment