1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

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
This commit is contained in:
Jean-Philippe Lang 2016-04-03 12:31:27 +00:00
parent 0ef6c949d1
commit 75dc617be3

View File

@ -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));