Skip to content

Commit

Permalink
prevent default
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Petersen committed Apr 19, 2016
1 parent b0fa0b5 commit d1614a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/Public/JavaScript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var targets = categoryNavigation.parent().find('[data-categories]');

targets.hide();
categoryLinks.on('click', function() {
categoryLinks.on('click', function(e) {
e.preventDefault();
var clickedLink = $(this);
categoryLinks.removeClass('active');
clickedLink.addClass('active');
Expand Down

0 comments on commit d1614a1

Please sign in to comment.