From c5daff01431040c9196645d0681d31de291c45ab Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 10 Nov 2015 11:20:15 +0100 Subject: [PATCH] Fixed tabs when there are several groups of tabs in the same page --- .../Resources/views/Profiler/base_js.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig index c247a8fc66..17f3d4b2b5 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig @@ -359,6 +359,8 @@ activeTab = activeTab.parentNode; } + /* get the full list of tabs through the parent of the active tab element */ + var tabNavigation = activeTab.parentNode.children; for (var k = 0; k < tabNavigation.length; k++) { var tabId = tabNavigation[k].getAttribute('data-tab-id'); document.getElementById(tabId).className = 'hidden';