Skip to content
Snippets Groups Projects
Commit 5670df14 authored by joriot221's avatar joriot221
Browse files

Suppression de l'ancien logo de chargement recherche intervenant

parent e7320531
Branches
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<div class="critere"> <div class="critere">
Saisissez le nom suivi éventuellement du prénom (2 lettres au moins) :<br/> 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"/> <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>
<div class="recherche" data-url="<?= $this->url('intervenant/recherche') ?>"> <div class="recherche" data-url="<?= $this->url('intervenant/recherche') ?>">
......
...@@ -9,14 +9,12 @@ $.widget("ose.intervenantRecherche", { ...@@ -9,14 +9,12 @@ $.widget("ose.intervenantRecherche", {
var that = this; var that = this;
if (critere.length > 1) { if (critere.length > 1) {
that.getElementLoading().show();
that.getElementRecherche().refresh({critere: critere}, function (response, status, xhr) that.getElementRecherche().refresh({critere: critere}, function (response, status, xhr)
{ {
if (status == "error") { if (status == "error") {
var msg = "Désolé mais une erreur est survenue: "; var msg = "Désolé mais une erreur est survenue: ";
that.getElementRecherche().html(msg + xhr.status + " " + xhr.statusText + xhr.responseText); that.getElementRecherche().html(msg + xhr.status + " " + xhr.statusText + xhr.responseText);
} }
that.getElementLoading().hide();
that.getElementCritere().autocomplete(); that.getElementCritere().autocomplete();
stopFunc(); stopFunc();
}); });
...@@ -39,5 +37,4 @@ $.widget("ose.intervenantRecherche", { ...@@ -39,5 +37,4 @@ $.widget("ose.intervenantRecherche", {
getElementCritere: function () { return this.element.find("#critere"); }, getElementCritere: function () { return this.element.find("#critere"); },
getElementRecherche: function () { return this.element.find('.recherche'); }, 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