Autocompletion for predecessors working

This commit is contained in:
Eric Allen 2009-11-29 20:14:05 -05:00
parent d0a5f6b731
commit 71b0e188c1
5 changed files with 7 additions and 15 deletions

View file

@ -191,6 +191,8 @@ function enable_rich_interaction(){
$('input[name=project[default_context_name]]').autocomplete(contextNames, {matchContains: true});
$('input[name=project_name]').autocomplete(projectNames, {matchContains: true});
$('input[name=tag_list]').autocomplete(tagNames, {multiple: true,multipleSeparator:',',matchContains:true});
$('input[name=predecessor_list]').autocomplete('/todos/auto_complete_for_predecessor',
{multiple: true,multipleSeparator:','});
/* have to bind on keypress because of limitataions of live() */
$('input[name=project_name]').live('keypress', function(){

View file

@ -364,6 +364,7 @@ $.Autocompleter = function(input, options) {
// limit abortion to this input
port: "autocomplete" + input.name,
dataType: options.dataType,
type: 'POST',
url: options.url,
data: $.extend({
q: lastWord(term),
@ -805,4 +806,4 @@ $.fn.selection = function(start, end) {
}
};
})(jQuery);
})(jQuery);