', valueField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?> id', displayField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?> name', name: 'contacts[]', maxSelection: null, //autorise plus de 10 sélections allowFreeEntries: false, // évite que l'utilisateur ne saisisse autre chose qu'un contact de la liste renderer: function(data) { return <?php echo $magicSuggestRenderer; ?> ; } }); }); function age(birthday) { birthday = new Date(birthday); return new Number((new Date().getTime() - birthday.getTime()) / 31536000000).toFixed(0); } }); </script> <?php $incs->footer();