Skip to content

Commit cb65cf6

Browse files
committed
bug symfony#23577 [WebProfilerBundle][TwigBundle] Fix infinite js loop on exception 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 | symfony#23566 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Commits ------- 295fda9 [WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages
2 parents 547185f + 295fda9 commit cb65cf6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/base_js.html.twig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -512,14 +512,14 @@
512512
var altContent = toggle.getAttribute('data-toggle-alt-content');
513513
toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;
514514
});
515+
}
515516
516-
/* Prevents from disallowing clicks on links inside toggles */
517-
var toggleLinks = document.querySelectorAll('.sf-toggle a');
518-
for (var i = 0; i < toggleLinks.length; i++) {
519-
addEventListener(toggleLinks[i], 'click', function(e) {
520-
e.stopPropagation();
521-
});
522-
}
517+
/* Prevents from disallowing clicks on links inside toggles */
518+
var toggleLinks = document.querySelectorAll('.sf-toggle a');
519+
for (var i = 0; i < toggleLinks.length; i++) {
520+
addEventListener(toggleLinks[i], 'click', function(e) {
521+
e.stopPropagation();
522+
});
523523
}
524524
}
525525
};

0 commit comments

Comments
 (0)