Merge commit 'origin/master' into hruid.
[platal.git] / templates / search / adv.form.tpl
index 1a5e272..3c6a5ba 100644 (file)
@@ -22,8 +22,6 @@
 
 <h1>Recherche dans l'annuaire</h1>
 
-{javascript name="jquery"}
-{javascript name="jquery.autocomplete"}
 <script type="text/javascript">// <!--
   var baseurl = platal_baseurl + "search/";
   {literal}
 
               return false;
             });
+        }).parent().find('.autocomplete').change(function() {
+          // If we change the value in the type="text" field, then the value in the 'integer id' field must not be used,
+          // to ensure that, we unset it
+          $(this).parent().find('.autocompleteTarget').val('');
         });
     });
 -->