Tweak router target URL for Autocomplete suggestions
This commit is contained in:
parent
ee9e95877c
commit
febcf7258c
@ -6,7 +6,7 @@ $(document).ready(function(){
|
||||
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,
|
||||
multipleSeparator: " ",
|
||||
minChars: 1,
|
||||
|
@ -66,7 +66,7 @@ class AutocompletePlugin extends Plugin
|
||||
function onRouterInitialized($m)
|
||||
{
|
||||
if (common_logged_in()) {
|
||||
$m->connect('plugins/Autocomplete/autocomplete.json', array('action'=>'autocomplete'));
|
||||
$m->connect('main/autocomplete/suggest', array('action'=>'autocomplete'));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user