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:
Mikael Nordfeldth
2013-09-16 22:10:08 +02:00
parent d480ed42d1
commit 8935a2f866
16 changed files with 96 additions and 4958 deletions

View File

@@ -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'));
}
}