From 61e8147dafc4de022e2ae9d74d106a381030e4dc Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Tue, 9 May 2017 14:53:56 +0200 Subject: [PATCH] Frio: recalculate sticky aside on click only on a tags This to prevent input elements in aside to lose focus after the recalculation. --- view/theme/frio/js/theme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 047cce16b..0329ae6c8 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -332,9 +332,9 @@ $(document).ready(function(){ offset_top: 100, // px, header + tab bar + spacing recalc_every: 10 }); - // recalculate sticky aside on clicks. + // recalculate sticky aside on clicks on elements // this handle height changes on expanding submenus - $("aside").on("click", function(){ + $("aside").on("click", "a", function(){ $(document.body).trigger("sticky_kit:recalc"); }); }