MAJ des appels magicSuggest avec le nouveau retour d'appel JSON

This commit is contained in:
Romain Guerrero 2016-02-09 13:56:33 +01:00
parent 137b231fae
commit 8b188ec670
4 changed files with 19 additions and 19 deletions

View file

@ -66,8 +66,8 @@
{ {
jQuery(this).magicSuggest({ jQuery(this).magicSuggest({
data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>', data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>',
valueField: 'id', valueField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>id',
displayField: 'name', displayField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>name',
name: 'contacts[]' name: 'contacts[]'
}); });
}); });

View file

@ -81,8 +81,8 @@
{ {
jQuery(this).magicSuggest({ jQuery(this).magicSuggest({
data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>', data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>',
valueField: 'id', valueField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>id',
displayField: 'name', displayField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>name',
}); });
}); });
}); });

View file

@ -91,8 +91,8 @@
{ {
jQuery(this).magicSuggest({ jQuery(this).magicSuggest({
data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>', data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>',
valueField: 'id', valueField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>id',
displayField: 'name', displayField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>name',
}); });
}); });

View file

@ -109,8 +109,8 @@
{ {
jQuery(this).magicSuggest({ jQuery(this).magicSuggest({
data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>', data: '<?php echo $this->generateUrl('contacts', 'jsonGetContacts'); ?>',
valueField: 'id', valueField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>id',
displayField: 'name', displayField: '<?php echo RASPISMS_SETTINGS_EXTENDED_CONTACTS_INFOS ? 'contacts.' : ''; ?>name',
}); });
}); });