Armani al fianco delle donne con 'Crossroads'
Armani al fianco delle donne con 'Crossroads' - Notizie : innovations (#1302653)
';
},
onSelect: function(e, term, item){
$('#fjHomeSearch').val(item.data('trade'));
$('#fjHomeSearchForm').submit();
}
});
$('#fjHeaderSearch').autoComplete({
minChars: 3,
source: function(term, response) {
try { xhrFjHeaderSearch.abort(); } catch(e){}
xhrFjHeaderSearch = $.getJSON(
'/ajax/autocomplete/',
{
site: 'fjobs',
service: 'fjobs-keywords',
term: term
},
function(data){
response(data);
}
);
},
renderItem: function (item, search){
search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi");
return '
'+item.label.replace(re, "$1")+'
'; }, onSelect: function(e, term, item){ $('#fjHeaderSearch').val(item.data('trade')).parent('form').submit(); } }); $('#fnwHeaderSearch').autoComplete({ minChars: 3, source: function(term, response) { try { xhrFnwHeaderSearch.abort(); } catch(e){} xhrFnwHeaderSearch = $.getJSON( '/ajax/autocomplete/', { site: 'fnw', service: 'tag', term: term }, function(data){ response(data); } ); }, renderItem: function (item, search){ search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi"); return ''+item.label.replace(re, "$1")+'
'; }, onSelect: function(e, term, item){ e.preventDefault(); document.location.href=item.data('value'); } });