nodebb-theme-harmony
Advanced tools
Comparing version 2.0.24 to 2.0.25
{ | ||
"name": "nodebb-theme-harmony", | ||
"version": "2.0.24", | ||
"version": "2.0.25", | ||
"nbbpm": { | ||
@@ -5,0 +5,0 @@ "compatibility": "^4.0.0" |
@@ -66,2 +66,3 @@ 'use strict'; | ||
const bottomBar = $('[component="bottombar"]'); | ||
let stickyTools = null; | ||
const location = config.theme.topMobilebar ? 'top' : 'bottom'; | ||
@@ -98,4 +99,4 @@ const $body = $('body'); | ||
}); | ||
if (config.theme.topMobilebar && config.theme.autohideBottombar) { | ||
$('.sticky-tools').css({ | ||
if (stickyTools && config.theme.topMobilebar && config.theme.autohideBottombar) { | ||
stickyTools.css({ | ||
top: isHiding ? 0 : 'var(--panel-offset)', | ||
@@ -126,2 +127,4 @@ }); | ||
hooks.on('action:ajaxify.end', function () { | ||
const { template } = ajaxify.data; | ||
stickyTools = (template.category || template.topic) ? $('.sticky-tools') : null; | ||
$window.off('scroll', delayedScroll); | ||
@@ -128,0 +131,0 @@ if (config.theme.autohideBottombar) { |
1325810
533