Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sidebar [2019/11/04 23:40]
muaddib
sidebar [2019/11/04 23:45] (current)
muaddib
Line 4: Line 4:
 // Workaround to prevent auto-expand / auto-collapse menus in the flat template. // Workaround to prevent auto-expand / auto-collapse menus in the flat template.
 jQuery(document).ready(function() { jQuery(document).ready(function() {
 + if ("​ontouchstart"​ in window) {
 + jQuery("#​site-navigation .menu-item-has-children .fa, #​site-navigation .page_item_has_children .fa"​).off("​click"​);​
 + }
  jQuery("#​site-navigation .menu-item-has-children .fa, #​site-navigation .page_item_has_children .fa"​).click(function() {  jQuery("#​site-navigation .menu-item-has-children .fa, #​site-navigation .page_item_has_children .fa"​).click(function() {
  jQuery(this).toggleClass("​open"​).next("​ul"​).slideToggle(300);​  jQuery(this).toggleClass("​open"​).next("​ul"​).slideToggle(300);​
Last modified: le 2019/11/04 23:45