Added autocompletion for form text-multi values

This commit is contained in:
James Booth
2014-09-17 23:21:14 +01:00
parent fa7b6f3000
commit 45ba6f1fed
3 changed files with 40 additions and 11 deletions

View File

@@ -2159,6 +2159,14 @@ _form_autocomplete(char *input, int *size)
}
// handle text-multi (remove)
if ((g_strcmp0(args[0], "remove") == 0) && field_type == FIELD_TEXT_MULTI) {
Autocomplete ac = form_get_value_ac(form, tag);
found = autocomplete_param_with_ac(input, size, beginning->str, ac, TRUE);
g_string_free(beginning, TRUE);
if (found != NULL) {
return found;
}
}
// handle jid-multi (remove)
}