Autocomplete issue relations on subject (#3170).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4502 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-12-12 16:04:28 +00:00
parent 758f2f0a4e
commit a8b12bcb52
5 changed files with 35 additions and 3 deletions
+14
View File
@@ -218,6 +218,20 @@ function observeParentIssueField(url) {
}});
}
function observeRelatedIssueField(url) {
new Ajax.Autocompleter('relation_issue_to_id',
'related_issue_candidates',
url,
{ minChars: 3,
frequency: 0.5,
paramName: 'q',
updateElement: function(value) {
document.getElementById('relation_issue_to_id').value = value.id;
},
parameters: 'scope=all'
});
}
/* shows and hides ajax indicator */
Ajax.Responders.register({
onCreate: function(){