Skip to content

Commit

Permalink
Made dropdown animation optional
Browse files Browse the repository at this point in the history
  • Loading branch information
loopj committed Mar 14, 2011
1 parent 02d38a5 commit 8e380f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/jquery.tokeninput.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $.fn.tokenInput = function (url, options) {
tokenDelimiter: ",",
preventDuplicates: false,
prePopulate: null,
animateDropdown: true,
onResult: null,
onAdd: null,
onDelete: null,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e380f4

Please sign in to comment.