Skip to content

Commit c9129dd

Browse files
committed
bug #12900 [WebProfilerBundle] Fixed IE8 support (korotovsky)
This PR was merged into the 2.6 branch. Discussion ---------- [WebProfilerBundle] Fixed IE8 support | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A Commits ------- a6dd6c9 [WebProfilerBundle] Fixed IE8 support
2 parents 2c3572d + a6dd6c9 commit c9129dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@
7070
requestStack = [],
7171
7272
renderAjaxRequests = function() {
73-
var requestCounter = document.getElementsByClassName('sf-toolbar-ajax-requests');
73+
var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');
7474
if (!requestCounter.length) {
7575
return;
7676
}
7777
78-
var tbodies = document.getElementsByClassName('sf-toolbar-ajax-request-list');
78+
var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');
7979
var state = 'ok';
8080
if (tbodies.length) {
8181
var tbody = tbodies[0];
@@ -136,7 +136,7 @@
136136
row.className = 'sf-ajax-request sf-ajax-request-' + requestState;
137137
}
138138
139-
var infoSpan = document.getElementsByClassName("sf-toolbar-ajax-info")[0];
139+
var infoSpan = document.querySelectorAll(".sf-toolbar-ajax-info")[0];
140140
var children = Array.prototype.slice.call(tbody.children);
141141
for (var i = 0; i < children.length; i++) {
142142
tbody.removeChild(children[i]);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy