Skip to content

Commit

Permalink
bug #23577 [WebProfilerBundle][TwigBundle] Fix infinite js loop on ex…
Browse files Browse the repository at this point in the history
…ception pages (ogizanagi)

This PR was merged into the 3.3 branch.

Discussion
----------

[WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages

| Q             | A
| ------------- | ---
| Branch?       | 3.3 <!-- see comment below -->
| Bug fix?      | yes
| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | #23566 <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

Commits
-------

295fda9 [WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages
  • Loading branch information
fabpot committed Jul 19, 2017
2 parents 547185f + 295fda9 commit cb65cf6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Symfony/Bundle/TwigBundle/Resources/views/base_js.html.twig
Expand Up @@ -512,14 +512,14 @@
var altContent = toggle.getAttribute('data-toggle-alt-content');
toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;
});
}
/* Prevents from disallowing clicks on links inside toggles */
var toggleLinks = document.querySelectorAll('.sf-toggle a');
for (var i = 0; i < toggleLinks.length; i++) {
addEventListener(toggleLinks[i], 'click', function(e) {
e.stopPropagation();
});
}
/* Prevents from disallowing clicks on links inside toggles */
var toggleLinks = document.querySelectorAll('.sf-toggle a');
for (var i = 0; i < toggleLinks.length; i++) {
addEventListener(toggleLinks[i], 'click', function(e) {
e.stopPropagation();
});
}
}
};
Expand Down

0 comments on commit cb65cf6

Please sign in to comment.