From: Brion Vibber Date: Tue, 7 Dec 2010 01:15:56 +0000 (-0800) Subject: Tweak router target URL for Autocomplete suggestions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=febcf7258c1bf558d2e1590bf041fb45087138c8;p=quix0rs-gnu-social.git Tweak router target URL for Autocomplete suggestions --- diff --git a/plugins/Autocomplete/Autocomplete.js b/plugins/Autocomplete/Autocomplete.js index 81d43dccde..ff3f736393 100644 --- a/plugins/Autocomplete/Autocomplete.js +++ b/plugins/Autocomplete/Autocomplete.js @@ -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, diff --git a/plugins/Autocomplete/AutocompletePlugin.php b/plugins/Autocomplete/AutocompletePlugin.php index 620b5e7b06..230ba089de 100644 --- a/plugins/Autocomplete/AutocompletePlugin.php +++ b/plugins/Autocomplete/AutocompletePlugin.php @@ -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')); } }