<h1>Recherche dans l'annuaire</h1>
-{javascript name="jquery"}
-{javascript name="jquery.autocomplete"}
<script type="text/javascript">// <!--
var baseurl = platal_baseurl + "search/";
{literal}
name = row[0].replace(regexp, '<strong>$1<\/strong>');
- if (row[1] == 1) {
- return name;
+ if (row[1] === "-1") {
+ return '...';
}
return name + '<em> - ' + row[1] + ' camarades<\/em>';
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('');
});
});
-->