From 9ce276ff1f61e32da0875e4478a69fd8ed3cfdd4 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Sat, 23 Sep 2017 04:13:39 +0300 Subject: [PATCH] FIX: sidebar with `motion` on Mist & Muse schemes. --- source/js/src/post-details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/src/post-details.js b/source/js/src/post-details.js index ecf65a05b..e5fc3feaa 100644 --- a/source/js/src/post-details.js +++ b/source/js/src/post-details.js @@ -147,7 +147,7 @@ $(document).ready(function () { CONFIG.sidebar.display === 'always'; var hasTOC = $tocContent.length > 0 && $tocContent.html().trim().length > 0; if (isSidebarCouldDisplay && hasTOC) { - CONFIG.motion ? + CONFIG.motion.enable ? (NexT.motion.middleWares.sidebar = function () { NexT.utils.displaySidebar(); }) : NexT.utils.displaySidebar();