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: " ",
8 formatItem: function(row, i, max){
9 return '@' + row.screen_name + ' (' + row.name + ')';
11 formatMatch: function(row, i, max){
12 return '@' + row.screen_name;
14 formatResult: function(row){
15 return '@' + row.screen_name;
20 $.getJSON($('address .url')[0].href+'/api/statusnet/groups/list.json?user_id=' + current_user['id'] + '&callback=?',
22 $('#notice_data-text').autocomplete(groups, {
24 multipleSeparator: " ",
26 formatItem: function(row, i, max){
27 return '!' + row.nickname + ' (' + row.fullname + ')';
29 formatMatch: function(row, i, max){
30 return '!' + row.nickname;
32 formatResult: function(row){
33 return '!' + row.nickname;