Auto-populate fields while creating a new user with LDAP (#10286).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11080 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-12-26 11:23:53 +00:00
parent eba4efc9d0
commit 7b8ebb7e3f
9 changed files with 135 additions and 10 deletions
+3 -3
View File
@@ -456,12 +456,12 @@ function updateBulkEditFrom(url) {
});
}
function observeAutocompleteField(fieldId, url) {
function observeAutocompleteField(fieldId, url, options) {
$(document).ready(function() {
$('#'+fieldId).autocomplete({
$('#'+fieldId).autocomplete($.extend({
source: url,
minLength: 2
});
}, options));
});
}