Tweak router target URL for Autocomplete suggestions

This commit is contained in:
Brion Vibber 2010-12-06 17:15:56 -08:00
parent ee9e95877c
commit febcf7258c
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ $(document).ready(function(){
return row.nickname; return row.nickname;
} }
} }
$('#notice_data-text').autocomplete($('address .url')[0].href+'/plugins/Autocomplete/autocomplete.json', { $('#notice_data-text').autocomplete($('address .url')[0].href+'main/autocomplete/suggest', {
multiple: true, multiple: true,
multipleSeparator: " ", multipleSeparator: " ",
minChars: 1, minChars: 1,

View File

@ -66,7 +66,7 @@ class AutocompletePlugin extends Plugin
function onRouterInitialized($m) function onRouterInitialized($m)
{ {
if (common_logged_in()) { if (common_logged_in()) {
$m->connect('plugins/Autocomplete/autocomplete.json', array('action'=>'autocomplete')); $m->connect('main/autocomplete/suggest', array('action'=>'autocomplete'));
} }
} }