Skip to content

Commit

Permalink
remove jquery script
Browse files Browse the repository at this point in the history
  • Loading branch information
hummer2k committed Feb 3, 2020
1 parent c4282d9 commit 8136308
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions view/laminas-developer-tools/toolbar/con-layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,3 @@ use ConLayout\Ldt\Collector\LayoutCollector;
</span>
</div>
</div>
<script>
if (typeof window.jQuery !== 'undefined') {
(function($) {
$('.laminas-conlayout-entry').on('mouseenter', function() {
var $detail = $(this).find('.laminas-toolbar-detail'),
offset = $(this).offset().left,
width = $detail.outerWidth(),
offsetWidth = offset + width,
windowWidth = $(window).width();

if (offsetWidth > windowWidth) {
$detail.css('right', 0);
} else {
$detail.css('right', 'auto');
}
});
})(jQuery);
}
</script>

0 comments on commit 8136308

Please sign in to comment.