File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
system/Debug/Toolbar/Views Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,17 @@ var ciDebugBar = {
36
36
37
37
showTab : function ( )
38
38
{
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
+
39
50
// Hide all tabs
40
51
var tabs = document . querySelectorAll ( '#debug-bar .tab' ) ;
41
52
@@ -50,19 +61,8 @@ var ciDebugBar = {
50
61
for ( var i = 0 ; i < labels . length ; i ++ )
51
62
{
52
63
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 ;
61
64
}
62
65
63
- // Check our current state.
64
- var state = tab . style . display ;
65
-
66
66
// Show/hide the selected tab
67
67
if ( state != 'block' )
68
68
{
You can’t perform that action at this time.
0 commit comments