summaryrefslogtreecommitdiffstats
path: root/public/javascripts/application.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r--public/javascripts/application.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 787b9904c..4cd34c2f2 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -194,6 +194,18 @@ function randomKey(size) {
return key;
}
+function observeParentIssueField(url) {
+ new Ajax.Autocompleter('issue_parent_issue_id',
+ 'parent_issue_candidates',
+ url,
+ { minChars: 3,
+ frequency: 0.5,
+ paramName: 'q',
+ updateElement: function(value) {
+ document.getElementById('issue_parent_issue_id').value = value.id;
+ }});
+}
+
/* shows and hides ajax indicator */
Ajax.Responders.register({
onCreate: function(){