/* Pour un client : Pour un contact liƩ au client #7 */ function init_components_client(input){ var data = { editData: function(){ return {before : input.attr('data-before')} }, data: function(){ return { before: input.attr('data-before'), firm: input.attr('data-firm'), parent: input.attr('data-parent') } } }; input.component_autocomplete('client',$.extend(data,{ skin: function(item){ var html = ''; var re = new RegExp(input.val(),"gi"); label = item.label.replace(re, function (x) { return ''+x+''; }); html += '