From 5670df14bdbd320f11e8ca819cf6ec572dc0a095 Mon Sep 17 00:00:00 2001
From: joriot221 <florian.joriot@unicarn.fr>
Date: Wed, 4 May 2022 10:39:12 +0200
Subject: [PATCH] Suppression de l'ancien logo de chargement recherche
 intervenant

---
 .../Application/view/application/intervenant/rechercher.phtml  | 1 -
 public/intervenant-recherche/widget.js                         | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/module/Application/view/application/intervenant/rechercher.phtml b/module/Application/view/application/intervenant/rechercher.phtml
index b66082e3c6..c734824d6d 100755
--- a/module/Application/view/application/intervenant/rechercher.phtml
+++ b/module/Application/view/application/intervenant/rechercher.phtml
@@ -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') ?>">
 
diff --git a/public/intervenant-recherche/widget.js b/public/intervenant-recherche/widget.js
index 5f2a45c12c..a673ab17ae 100755
--- a/public/intervenant-recherche/widget.js
+++ b/public/intervenant-recherche/widget.js
@@ -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
-- 
GitLab