1 $(document).ready(function(){
2 $.getJSON($('address .url')[0].href+'/api/statuses/friends.json?user_id=' + current_user['id'] + '&lite=true&callback=?',
4 $('#notice_data-text').autocomplete(friends, {
6 multipleSeparator: " ",
7 formatItem: function(row, i, max){
8 return '@' + row.screen_name + ' (' + row.name + ')';
10 formatMatch: function(row, i, max){
11 return '@' + row.screen_name;
13 formatResult: function(row){
14 return '@' + row.screen_name;