});
$(document).on(this.fluidbook.input.clickEvent, '.searchResultsNavClose', function () {
- $this.closeResultsNav();
+ if($this.fluidbook.floatmode) {
+ $this.closeResultsNavInFloatMode();
+ }else {
+ $this.closeResultsNav();
+ }
});
$(this.fluidbook).on('fluidbook.resize.orientation', function (event, details) {
$('body').removeClass(this.resultsActiveClass);
},
+ closeResultsNavInFloatMode: function() {
+ this.hideableElements.removeClass('hidden');
+ this.resultsNav.addClass('hideUp').addClass('hidden');
+ setTimeout(() => {
+ this.resultsNav.removeClass('hideUp');
+ }, 800);
+ this.closeSearch();
+ $('body').removeClass(this.resultsActiveClass);
+ },
+
nextResultsPage: function () {
var currentIndex = this.resultNavPages.indexOf(fluidbook.currentPage);
var nextIndex = currentIndex + 1;