Skip to content

Commit 95a75e2

Browse files
committed
Revert showTab logic due to tabs do not close on click
1 parent 4bc20e8 commit 95a75e2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

system/Debug/Toolbar/Views/toolbar.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ var ciDebugBar = {
3636

3737
showTab: function()
3838
{
39+
// Get the target tab, if any
40+
var tab = document.getElementById(this.getAttribute('data-tab'));
41+
42+
// If the label have not a tab stops here
43+
if (! tab) {
44+
return;
45+
}
46+
47+
// Check our current state.
48+
var state = tab.style.display;
49+
3950
// Hide all tabs
4051
var tabs = document.querySelectorAll('#debug-bar .tab');
4152

@@ -50,19 +61,8 @@ var ciDebugBar = {
5061
for (var i=0; i < labels.length; i++)
5162
{
5263
ciDebugBar.removeClass(labels[i], 'active');
53-
}
54-
55-
// Get the target tab, if any
56-
var tab = document.getElementById(this.getAttribute('data-tab'));
57-
58-
// If the label have not a tab stops here
59-
if (! tab) {
60-
return;
6164
}
6265

63-
// Check our current state.
64-
var state = tab.style.display;
65-
6666
// Show/hide the selected tab
6767
if (state != 'block')
6868
{

0 commit comments

Comments
 (0)