1
0
Fork 0

Frio: recalculate sticky aside on click only on a tags

This to prevent input elements in aside to lose focus after the
recalculation.
This commit is contained in:
fabrixxm 2017-05-09 14:53:56 +02:00
parent d162e689da
commit 61e8147daf

View file

@ -332,9 +332,9 @@ $(document).ready(function(){
offset_top: 100, // px, header + tab bar + spacing offset_top: 100, // px, header + tab bar + spacing
recalc_every: 10 recalc_every: 10
}); });
// recalculate sticky aside on clicks. // recalculate sticky aside on clicks on <a> elements
// this handle height changes on expanding submenus // this handle height changes on expanding submenus
$("aside").on("click", function(){ $("aside").on("click", "a", function(){
$(document.body).trigger("sticky_kit:recalc"); $(document.body).trigger("sticky_kit:recalc");
}); });
} }