From: fabrixxm Date: Tue, 9 May 2017 12:53:56 +0000 (+0200) Subject: Frio: recalculate sticky aside on click only on a tags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=61e8147dafc4de022e2ae9d74d106a381030e4dc;p=friendica.git Frio: recalculate sticky aside on click only on a tags This to prevent input elements in aside to lose focus after the recalculation. --- diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 047cce16b0..0329ae6c82 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"); }); }