Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
separate default settings in categories
Browse files Browse the repository at this point in the history
  • Loading branch information
vdepizzol committed Jul 15, 2011
1 parent 6d5639d commit 1853d3b
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions src/jquery.tokeninput.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,54 @@
*/

(function ($) {

// Default settings
var DEFAULT_SETTINGS = {

// Strings

hintText: "Type in a search term",
noResultsText: "No results",
searchingText: "Searching...",
deleteText: "×",
searchDelay: 300,
minChars: 1,

// Field exibition and behavior

tokenLimit: null,
jsonContainer: null,
allowCustomEntry: false,
preventDuplicates: false,
searchColumns: ['name'],
parseName: null,
escapeHTML: true,
searchDelay: 300,
minChars: 1,
makeSortable: false,
animateDropdown: true,

// Get local & external data

method: "GET",
contentType: "json",
queryParam: "q",
jsonContainer: null,
prePopulate: null,
processPrePopulate: false,

// Submit input value

tokenDelimiter: ",",
tokenQuote: "'",
tokenQuoteEscaped: "\\'",
preventDuplicates: false,
prePopulate: null,
processPrePopulate: false,
parseName: null,
searchColumns: ['name'],
makeSortable: false,
escapeHTML: true,
animateDropdown: true,
tokensFormatter: null,

// Callbacks

onResult: null,
onAdd: null,
onDelete: null,
tokensFormatter: null
onDelete: null
};


// Default classes to use when theming
var DEFAULT_CLASSES = {
tokenList: "token-input-list",
Expand Down

0 comments on commit 1853d3b

Please sign in to comment.