summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-03 12:31:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-03 12:31:27 +0000
commit75dc617be3215b2ca6946c0b85071bfb5b043d07 (patch)
treeb58aa6e02e6289c18d9e11f93b90b59acb5df7cc /public
parent0ef6c949d1b6d457526686a2bf713bcc06ec4e02 (diff)
downloadredmine-75dc617be3215b2ca6946c0b85071bfb5b043d07.tar.gz
redmine-75dc617be3215b2ca6946c0b85071bfb5b043d07.zip
Add collision option to autocomplete initialization (#22296).
Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@15301 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 971741432..3409bc64c 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -529,6 +529,7 @@ function observeAutocompleteField(fieldId, url, options) {
$('#'+fieldId).autocomplete($.extend({
source: url,
minLength: 2,
+ position: {collision: "flipfit"},
search: function(){$('#'+fieldId).addClass('ajax-loading');},
response: function(){$('#'+fieldId).removeClass('ajax-loading');}
}, options));