X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FAutocomplete%2FAutocompletePlugin.php;h=39b933afd95cedd6bba1696fb7b9138e4bedd90d;hb=86a7889012a65c737d80e86848a620397b459b25;hp=ca495f79f4a8db1fa11e6b18bc2cb80d332dd2c1;hpb=26f0a24ab6b54b8bed6bfd7514acf67de0c68a7a;p=quix0rs-gnu-social.git diff --git a/plugins/Autocomplete/AutocompletePlugin.php b/plugins/Autocomplete/AutocompletePlugin.php index ca495f79f4..39b933afd9 100644 --- a/plugins/Autocomplete/AutocompletePlugin.php +++ b/plugins/Autocomplete/AutocompletePlugin.php @@ -51,6 +51,8 @@ class AutocompletePlugin extends Plugin function onEndShowScripts($action){ if (common_logged_in()) { + $action->element('span', array('id' => 'autocomplete-api', + 'data-url' => common_local_url('autocomplete'))); $action->script($this->path('jquery-autocomplete/jquery.autocomplete.pack.js')); $action->script($this->path('Autocomplete.js')); } @@ -77,7 +79,8 @@ class AutocompletePlugin extends Plugin 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:Autocomplete', 'rawdescription' => - _m('The autocomplete plugin allows users to autocomplete screen names in @ replies. When an "@" is typed into the notice text area, an autocomplete box is displayed populated with the user\'s friend\' screen names.')); + // TRANS: Plugin description. + _m('The autocomplete plugin adds autocompletion for @ replies.')); return true; } }