[WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages
This commit is contained in:
parent
0bd1f09152
commit
295fda9a31
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user