Skip to content

Commit

Permalink
html validator error fix in template
Browse files Browse the repository at this point in the history
  • Loading branch information
seibtph authored and Philipp Seibt committed Jan 24, 2018
1 parent b018bc2 commit 46cc7ad
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

</a>
<?php if(!empty($item['subitems'])): ?>
<i onclick="jQuery( this ).parent('li').next().toggle();return false;" ontouchstart="jQuery( this ).parent('li').next().toggle();return false;" class="material-icons right" style="z-index: 999;position: relative;right: 5px;top: -55px;">arrow_drop_down</i>
<i class="material-icons right" style="z-index: 999;position: relative;right: 5px;top: -55px;">arrow_drop_down</i>
<?php endif; ?>
</li>
<?php if (!empty($item['subitems'])): ?>
Expand All @@ -39,4 +39,8 @@
<?php $GLOBALS['TL_BODY'][] = '<script>
jQuery(".mobile-menu i").bind("touchstart click", function() {
$(this).html() == "arrow_drop_down" ? $(this).html("arrow_drop_up") : $(this).html("arrow_drop_down");
}); </script>'; ?>
});
jQuery(".mobile-menu i").bind("touchstart click", function() {
$(this).parent("li").next().toggle();return false;
});
</script>'; ?>

0 comments on commit 46cc7ad

Please sign in to comment.