File tree 1 file changed +2
-8
lines changed
src/librustdoc/html/static
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,6 @@ function defocusSearchBar() {
365
365
function handleEscape ( ev ) {
366
366
var help = getHelpElement ( ) ;
367
367
var search = getSearchElement ( ) ;
368
- hideModal ( ) ;
369
368
if ( hasClass ( help , "hidden" ) === false ) {
370
369
displayHelp ( false , ev , help ) ;
371
370
} else if ( hasClass ( search , "hidden" ) === false ) {
@@ -398,7 +397,6 @@ function defocusSearchBar() {
398
397
case "s" :
399
398
case "S" :
400
399
displayHelp ( false , ev ) ;
401
- hideModal ( ) ;
402
400
ev . preventDefault ( ) ;
403
401
focusSearchBar ( ) ;
404
402
break ;
@@ -411,7 +409,6 @@ function defocusSearchBar() {
411
409
412
410
case "?" :
413
411
if ( ev . shiftKey ) {
414
- hideModal ( ) ;
415
412
displayHelp ( true , ev ) ;
416
413
}
417
414
break ;
@@ -2639,13 +2636,10 @@ function defocusSearchBar() {
2639
2636
} ) ;
2640
2637
} ( ) ) ;
2641
2638
2642
- function showImportantTraits ( content ) {
2643
- let list = content . classList
2644
- }
2645
-
2646
2639
onEachLazy ( document . getElementsByClassName ( "important-traits" ) , function ( e ) {
2647
2640
e . onclick = function ( ) {
2648
- e . getElementsByClassName ( 'important-traits-tooltiptext' ) [ 0 ] . classList . toggle ( "force-tooltip" )
2641
+ this . getElementsByClassName ( 'important-traits-tooltiptext' ) [ 0 ]
2642
+ . classList . toggle ( "force-tooltip" ) ;
2649
2643
} ;
2650
2644
} ) ;
2651
2645
You can’t perform that action at this time.
0 commit comments