]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Tweak router target URL for Autocomplete suggestions
authorBrion Vibber <brion@pobox.com>
Tue, 7 Dec 2010 01:15:56 +0000 (17:15 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 7 Dec 2010 01:15:56 +0000 (17:15 -0800)
plugins/Autocomplete/Autocomplete.js
plugins/Autocomplete/AutocompletePlugin.php

index 81d43dccde2449d9b4b9abd873c0fbb01665bfe7..ff3f736393225d033d508f27adb757ab28b20dbf 100644 (file)
@@ -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,
index 620b5e7b06a0e5aeb5ff408ba657f905bf06ddfc..230ba089de3e8fe0a6297ba27d196fb68a293920 100644 (file)
@@ -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'));
         }
     }