|
@ -1722,6 +1722,8 @@ $.fn.dropdown = function(parameters) { |
|
|
|
|
|
|
|
|
scrollPage: function(direction, $selectedItem) { |
|
|
scrollPage: function(direction, $selectedItem) { |
|
|
var |
|
|
var |
|
|
|
|
|
$selectedItem = $selectedItem || module.get.selectedItem(), |
|
|
|
|
|
$menu = $selectedItem.closest(selector.menu), |
|
|
menuHeight = $menu.outerHeight(), |
|
|
menuHeight = $menu.outerHeight(), |
|
|
currentScroll = $menu.scrollTop(), |
|
|
currentScroll = $menu.scrollTop(), |
|
|
itemHeight = $item.eq(0).outerHeight(), |
|
|
itemHeight = $item.eq(0).outerHeight(), |
|
@ -1735,7 +1737,6 @@ $.fn.dropdown = function(parameters) { |
|
|
$nextSelectedItem, |
|
|
$nextSelectedItem, |
|
|
elementIndex |
|
|
elementIndex |
|
|
; |
|
|
; |
|
|
$selectedItem = $selectedItem || module.get.selectedItem(); |
|
|
|
|
|
elementIndex = (direction == 'up') |
|
|
elementIndex = (direction == 'up') |
|
|
? $selectableItem.index($selectedItem) - itemsPerPage |
|
|
? $selectableItem.index($selectedItem) - itemsPerPage |
|
|
: $selectableItem.index($selectedItem) + itemsPerPage |
|
|
: $selectableItem.index($selectedItem) + itemsPerPage |
|
@ -2618,7 +2619,7 @@ $.fn.dropdown = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
hideAndClear: function() { |
|
|
hideAndClear: function() { |
|
|
if(module.is.searchSelection()) { |
|
|
|
|
|
|
|
|
if(module.has.search()) { |
|
|
module.remove.searchTerm(); |
|
|
module.remove.searchTerm(); |
|
|
module.hide(function() { |
|
|
module.hide(function() { |
|
|
module.remove.filteredItem(); |
|
|
module.remove.filteredItem(); |
|
|