Skip to content

Commit

Permalink
Fix cannot open link on parent menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
joomlart committed Jul 15, 2016
1 parent 6b5ac5f commit cf372a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/plg_system_t3/base-bs3/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
// fix for touch screen
if ($link.length && $child.length) {
$link.on('click', function(e) {
if (item.clickable) {
e.stopPropagation();
}
return item.clickable;
});
}
Expand Down
3 changes: 3 additions & 0 deletions source/plg_system_t3/base/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
// fix for touch screen
if ($link.length && $child.length) {
$link.on('click', function(e) {
if (item.clickable) {
e.stopPropagation();
}
return item.clickable;
});
}
Expand Down

0 comments on commit cf372a8

Please sign in to comment.