From febcf7258c1bf558d2e1590bf041fb45087138c8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 6 Dec 2010 17:15:56 -0800 Subject: [PATCH] Tweak router target URL for Autocomplete suggestions --- plugins/Autocomplete/Autocomplete.js | 2 +- plugins/Autocomplete/AutocompletePlugin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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')); } } -- 2.39.5