]> git.mxchange.org Git - friendica.git/commitdiff
Frio: recalculate sticky aside on click only on a tags
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 9 May 2017 12:53:56 +0000 (14:53 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 9 May 2017 12:53:56 +0000 (14:53 +0200)
This to prevent input elements in aside to lose focus after the
recalculation.

view/theme/frio/js/theme.js

index 047cce16b089f672c6d03ae6dfd70c16c1766fd2..0329ae6c82cb16a287a6238b2d007a41f9dfbfe0 100644 (file)
@@ -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 <a> elements
                // this handle height changes on expanding submenus
-               $("aside").on("click", function(){
+               $("aside").on("click", "a", function(){
                        $(document.body).trigger("sticky_kit:recalc");
                });
        }