forked from DGNum/gestioCOF
changes autocomplete position
This commit is contained in:
parent
7de11f2285
commit
88843f4b1a
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,9 @@
|
||||||
<h2>Inscription d'un nouveau membre</h2>
|
<h2>Inscription d'un nouveau membre</h2>
|
||||||
<input type="text" name="q" id="search_autocomplete" spellcheck="false" />
|
<input type="text" name="q" id="search_autocomplete" spellcheck="false" />
|
||||||
<div id="form-placeholder"></div>
|
<div id="form-placeholder"></div>
|
||||||
|
<span class="yourlabs-autocomplete"></span>
|
||||||
|
<a href="{% url "gestioncof.views.sync_clipper" %}">Synchroniser
|
||||||
|
avec clipper</a>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('input#search_autocomplete').yourlabsAutocomplete({
|
$('input#search_autocomplete').yourlabsAutocomplete({
|
||||||
|
@ -18,6 +21,9 @@
|
||||||
id: 'search_autocomplete',
|
id: 'search_autocomplete',
|
||||||
choiceSelector: 'li:has(a)',
|
choiceSelector: 'li:has(a)',
|
||||||
placeholder: "Chercher un utilisateur par nom, prénom ou identifiant clipper",
|
placeholder: "Chercher un utilisateur par nom, prénom ou identifiant clipper",
|
||||||
|
container: $("#main-content"),
|
||||||
|
box: $(".yourlabs-autocomplete"),
|
||||||
|
fixPosition: function() {},
|
||||||
});
|
});
|
||||||
$('input#search_autocomplete').bind(
|
$('input#search_autocomplete').bind(
|
||||||
'selectChoice',
|
'selectChoice',
|
||||||
|
|
Loading…
Reference in a new issue