Spécification du nombre de valeur max à afficher
This commit is contained in:
parent
e264ea7cfa
commit
a91298ea63
@ -16,7 +16,7 @@ $(document).ready(function(){
|
||||
cacheLength: 1,
|
||||
formatItem: formatItem,
|
||||
width: 400,
|
||||
max: 40,
|
||||
max: 40
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -16,7 +16,7 @@ $(document).ready(function(){
|
||||
cacheLength: 1,
|
||||
formatItem: formatItem,
|
||||
width: 400,
|
||||
max: 40,
|
||||
max: 40
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -2,25 +2,25 @@
|
||||
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
|
||||
?>
|
||||
<label>Opposition</label>
|
||||
<input type="text" name="test" value="">
|
||||
<input type="text" name="oppo" value="">
|
||||
<input type="hidden" name="jugement[oppo]" value="">
|
||||
<span class="left"><a id="lienOppositionEdit" title="Editer le mandataire" class="thickbox" href="./pages_saisie/mandataire.php"><img src="../img/edit1.gif" alt="Edition mandataire"/></a></span>
|
||||
<p><a id="lienOppositionAdd" href="./pages_saisie/mandataire.php?width=650&height=500&tribunal=<?php print $tribunal; ?>" title="Ajouter un andataire" class="thickbox">Ajouter un mandataire</a></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("[name=test]").autocomplete( "./pages_saisie/searchMandataires.php",
|
||||
$("[name=oppo]").autocomplete( "./pages_saisie/searchMandataires.php",
|
||||
{
|
||||
delay: 800,
|
||||
minChars: 3,
|
||||
cacheLength: 1,
|
||||
formatItem: formatItem,
|
||||
width: 400,
|
||||
max: 40,
|
||||
max: 40
|
||||
}
|
||||
);
|
||||
|
||||
$("[name=test]").result(function(event, data, formatted) {
|
||||
$("[name=oppo]").result(function(event, data, formatted) {
|
||||
var tribunal = $("#tribunal option:selected").val();
|
||||
var idMandataire = data[1];
|
||||
$("[name=jugement[oppo]]").val(idMandataire);
|
||||
|
Loading…
x
Reference in New Issue
Block a user