|
@ -1915,10 +1915,6 @@ $.fn.dropdown = function(parameters) { |
|
|
? module.get.values() |
|
|
? module.get.values() |
|
|
: module.get.text() |
|
|
: module.get.text() |
|
|
; |
|
|
; |
|
|
value = (typeof value === "string" && settings.ignoresCase) |
|
|
|
|
|
? value.toLowerCase() |
|
|
|
|
|
: value |
|
|
|
|
|
; |
|
|
|
|
|
shouldSearch = (isMultiple) |
|
|
shouldSearch = (isMultiple) |
|
|
? (value.length > 0) |
|
|
? (value.length > 0) |
|
|
: (value !== undefined && value !== null) |
|
|
: (value !== undefined && value !== null) |
|
@ -1936,14 +1932,6 @@ $.fn.dropdown = function(parameters) { |
|
|
optionText = module.get.choiceText($choice), |
|
|
optionText = module.get.choiceText($choice), |
|
|
optionValue = module.get.choiceValue($choice, optionText) |
|
|
optionValue = module.get.choiceValue($choice, optionText) |
|
|
; |
|
|
; |
|
|
optionText = (typeof optionText === "string" && settings.ignoresCase) |
|
|
|
|
|
? optionText.toLowerCase() |
|
|
|
|
|
: optionText |
|
|
|
|
|
; |
|
|
|
|
|
optionValue = (typeof optionValue === "string" && settings.ignoresCase) |
|
|
|
|
|
? optionValue.toLowerCase() |
|
|
|
|
|
: optionValue |
|
|
|
|
|
; |
|
|
|
|
|
// safe early exit
|
|
|
// safe early exit
|
|
|
if(optionValue === null || optionValue === undefined) { |
|
|
if(optionValue === null || optionValue === undefined) { |
|
|
return; |
|
|
return; |
|
@ -3696,8 +3684,7 @@ $.fn.dropdown.settings = { |
|
|
|
|
|
|
|
|
transition : 'auto', // auto transition will slide down or up based on direction
|
|
|
transition : 'auto', // auto transition will slide down or up based on direction
|
|
|
duration : 200, // duration of transition
|
|
|
duration : 200, // duration of transition
|
|
|
|
|
|
|
|
|
ignoresCase : false, // when determining if an item exists or not ignore case of value and label when comparing
|
|
|
|
|
|
|
|
|
|
|
|
glyphWidth : 1.037, // widest glyph width in em (W is 1.037 em) used to calculate multiselect input width
|
|
|
glyphWidth : 1.037, // widest glyph width in em (W is 1.037 em) used to calculate multiselect input width
|
|
|
|
|
|
|
|
|
// label settings on multi-select
|
|
|
// label settings on multi-select
|
|
|