File tree 1 file changed +5
-5
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 169
169
infoSpan .textContent = text;
170
170
}
171
171
} else {
172
- var ajaxToolbarPanel = document .querySelectorAll (' .sf-toolbar-block-ajax' );
173
- ajaxToolbarPanel[ 0 ] .style .display = ' none' ;
172
+ var ajaxToolbarPanel = document .querySelector (' .sf-toolbar-block-ajax' );
173
+ ajaxToolbarPanel .style .display = ' none' ;
174
174
}
175
175
}
176
176
179
179
var className = ' sf-toolbar-ajax-requests sf-toolbar-value' ;
180
180
requestCounter[0 ].className = className;
181
181
182
- var ajaxToolbarPanel = document .querySelectorAll (' .sf-toolbar-block-ajax' );
182
+ var ajaxToolbarPanel = document .querySelector (' .sf-toolbar-block-ajax' );
183
183
if (state == ' error' ) {
184
- Sfjs .addClass (ajaxToolbarPanel[ 0 ] , ' sf-toolbar-status-red' );
184
+ Sfjs .addClass (ajaxToolbarPanel, ' sf-toolbar-status-red' );
185
185
} else {
186
- Sfjs .addClass (ajaxToolbarPanel[ 0 ] , ' sf-ajax-request-loading' );
186
+ Sfjs .addClass (ajaxToolbarPanel, ' sf-ajax-request-loading' );
187
187
}
188
188
};
189
189
You can’t perform that action at this time.
0 commit comments