forked from GNUsocial/gnu-social
Autocomplete migrated to jquery-ui autocomplete
No longer bundled with the library (as jquery-ui is bundled with the main software, including the autocomplete part). Rewrites had to be made to migrate, as several API things had changed when jquery-ui took over the library. Currently (like before, right?) this only autocompletes in the end of the current textarea. So you can't jump back in the middle of a text and autocomplete a user or group. This is a serious deficiency, though not a regression.
This commit is contained in:
@@ -43,15 +43,7 @@ class AutocompletePlugin extends Plugin
|
||||
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'));
|
||||
}
|
||||
}
|
||||
|
||||
function onEndShowStatusNetStyles($action)
|
||||
{
|
||||
if (common_logged_in()) {
|
||||
$action->cssLink($this->path('jquery-autocomplete/jquery.autocomplete.css'));
|
||||
$action->script($this->path('js/autocomplete.go.js'));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user