Skip to content

Commit

Permalink
Post Opera Presto fix (#1074)
Browse files Browse the repository at this point in the history
* Scoot preventing default to a later time... conditionally logic'd better

Applies to #904 and #1062
  • Loading branch information
Martii authored Apr 5, 2017
1 parent e5a4a8e commit 94bc803
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions views/includes/scripts/tableTrLinkScript.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
var anchor = null;
var url = null;

aEv.preventDefault();

// Traverse up the DOM to find the container tr tag
while (!container.classList.contains('tr-link')) {
if (!(container = container.parentNode)) {
Expand All @@ -26,8 +24,9 @@
return;
}

// Stop propagation as soon as possible
// Stop everything as soon as possible
aEv.stopPropagation();
aEv.preventDefault();

// Redirect to the anchor href
if ((aEv.ctrlKey || aEv.metaKey) && aEv.shiftKey) {
Expand Down

0 comments on commit 94bc803

Please sign in to comment.