From 8e380f40aebf8499a8706abfa4e6ab3055466f8d Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 14 Mar 2011 01:29:55 -0700 Subject: [PATCH] Made dropdown animation optional --- src/jquery.tokeninput.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jquery.tokeninput.js b/src/jquery.tokeninput.js index b9f7c082..550ccb89 100644 --- a/src/jquery.tokeninput.js +++ b/src/jquery.tokeninput.js @@ -27,6 +27,7 @@ $.fn.tokenInput = function (url, options) { tokenDelimiter: ",", preventDuplicates: false, prePopulate: null, + animateDropdown: true, onResult: null, onAdd: null, onDelete: null, @@ -503,8 +504,12 @@ $.TokenList = function (input, settings) { }); dropdown.show(); - dropdown_ul.slideDown("fast"); + if(settings.animateDropdown) { + dropdown_ul.slideDown("fast"); + } else { + dropdown_ul.show(); + } } else { if(settings.noResultsText) { dropdown