Skip to content
Browse files

default options for autocomplete

  • Loading branch information...
1 parent 0f59d07 commit eac322b9a7affa6077a9db1c308a5bee351263b9 @aratak committed Dec 26, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 vendor/assets/javascripts/jquery.drappers.autocomplete.js
View
6 vendor/assets/javascripts/jquery.drappers.autocomplete.js
@@ -29,20 +29,20 @@
}
var optionsToTokenInput = function() {
- return {
+ return $.extend({
theme: 'facebook',
propertyToSearch: "queue",
resultsFormatter: function(item) { return "<li>" + item.hint + "</li>" },
tokenFormatter: function(item) { return "<li>" + item.value + "</li>" },
preventDuplicates: true,
- hintText: decoree.config.hintText || "Type in a search term",
+ hintText: "Type in a search term",
onAdd: function(item) {
return getOptionByItem(item).attr('selected', 'selected');
},
onDelete: function(item) {
return getOptionByItem(item).removeAttr('selected');
}
- }
+ }, decoree.options)
}
var tokenInput = function() {

0 comments on commit eac322b

Please sign in to comment.
Something went wrong with that request. Please try again.