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