|
|
@ -216,7 +216,9 @@ $.fn.dropdown = function(parameters) { |
|
|
|
: $choice.text(), |
|
|
|
value = ( $choice.data(metadata.value) !== undefined) |
|
|
|
? $choice.data(metadata.value) |
|
|
|
: text.toLowerCase(), |
|
|
|
: (typeof text === 'string') |
|
|
|
? text.toLowerCase() |
|
|
|
: text, |
|
|
|
callback = function() { |
|
|
|
module.determine.selectAction(text, value); |
|
|
|
$.proxy(settings.onChange, element)(value, text); |
|
|
@ -352,7 +354,9 @@ $.fn.dropdown = function(parameters) { |
|
|
|
: $choice.text(), |
|
|
|
optionValue = ( $choice.data(metadata.value) !== undefined ) |
|
|
|
? $choice.data(metadata.value) |
|
|
|
: optionText.toLowerCase() |
|
|
|
: (typeof optionText === 'string') |
|
|
|
? optionText.toLowerCase() |
|
|
|
: optionText |
|
|
|
; |
|
|
|
if( optionValue == value ) { |
|
|
|
$selectedItem = $(this); |
|
|
|