Skip to content

Commit

Permalink
Match formatting #3085
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed May 15, 2016
1 parent cd63885 commit f87ae3d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,11 +779,11 @@ $.fn.dropdown = function(parameters) {
results.push(this);
return true;
}
else if (settings.fullTextSearch === "exact" && module.exactSearch(searchTerm, text)) {
else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, text)) {
results.push(this);
return true;
}
else if (!settings.fullTextSearch === "exact" && settings.fullTextSearch && module.fuzzySearch(searchTerm, text)) {
else if (settings.fullTextSearch !== 'exact' && settings.fullTextSearch && module.fuzzySearch(searchTerm, text)) {
results.push(this);
return true;
}
Expand Down Expand Up @@ -842,8 +842,7 @@ $.fn.dropdown = function(parameters) {
exactSearch: function (query, term) {
query = query.toLowerCase();
term = term.toLowerCase();

if (term.indexOf(query) > -1) {
if(term.indexOf(query) > -1) {
return true;
}
return false;
Expand Down Expand Up @@ -3484,7 +3483,7 @@ $.fn.dropdown.settings = {
keepOnScreen : true, // Whether dropdown should check whether it is on screen before showing

match : 'both', // what to match against with search selection (both, text, or label)
fullTextSearch : false, // search anywhere in value
fullTextSearch : false, // search anywhere in value (set to 'exact' to require exact matches)

placeholder : 'auto', // whether to convert blank <select> values to placeholder text
preserveHTML : true, // preserve html when selecting value
Expand Down

0 comments on commit f87ae3d

Please sign in to comment.