File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
system/Debug/Toolbar/Views Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -27,24 +27,25 @@ var ciDebugBar = {
27
27
. getElementById ( "debug-icon-link" )
28
28
. addEventListener ( "click" , ciDebugBar . toggleToolbar , true ) ;
29
29
30
- if ( this . toolbar . querySelector ( ".ci-history-load" ) ) {
30
+ historyLoad = this . toolbar . getElementsByClassName ( "ci-history-load" ) ;
31
+
32
+ if ( historyLoad . length ) {
31
33
// Allows highlighting the row of the current history request
32
34
var btn = this . toolbar . querySelector (
33
- 'button[data-time="' + localStorage . getItem ( "debugbar-time" ) + '"]'
35
+ 'button[data-time="' + localStorage . getItem ( "debugbar-time-new " ) + '"]'
34
36
) ;
35
37
ciDebugBar . addClass ( btn . parentNode . parentNode , "current" ) ;
36
- }
37
38
38
- historyLoad = this . toolbar . getElementsByClassName ( "ci-history-load" ) ;
39
39
40
- for ( var i = 0 ; i < historyLoad . length ; i ++ ) {
41
- historyLoad [ i ] . addEventListener (
42
- "click" ,
43
- function ( ) {
44
- loadDoc ( this . getAttribute ( "data-time" ) ) ;
45
- } ,
46
- true
47
- ) ;
40
+ for ( var i = 0 ; i < historyLoad . length ; i ++ ) {
41
+ historyLoad [ i ] . addEventListener (
42
+ "click" ,
43
+ function ( ) {
44
+ loadDoc ( this . getAttribute ( "data-time" ) ) ;
45
+ } ,
46
+ true
47
+ ) ;
48
+ }
48
49
}
49
50
50
51
// Display the active Tab on page load
You can’t perform that action at this time.
0 commit comments