From 75dc617be3215b2ca6946c0b85071bfb5b043d07 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 3 Apr 2016 12:31:27 +0000 Subject: 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 --- public/javascripts/application.js | 1 + 1 file changed, 1 insertion(+) (limited to 'public') 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)); -- cgit v1.2.3