File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{{/* Link directly to documentation etc., if possible. */}}
22{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }}
3- < a class ="nav-link dropdown-toggle " href ="# " id ="navbarDropdown " role ="button " data-toggle ="dropdown " aria-haspopup ="true " aria-expanded ="false ">
3+ < a class ="nav-link dropdown-toggle lang-dropdown-toggle " href ="# " id ="navbarDropdown " role ="button " data-toggle ="dropdown " aria-haspopup ="true " aria-expanded ="false ">
44 {{ $langPage.Language.LanguageName }}
55</ a >
66< div class ="dropdown-menu hide_select_in_en " aria-labelledby ="navbarDropdownMenuLink ">
Original file line number Diff line number Diff line change 3939 const url = window . location . href ;
4040 if ( url . indexOf ( '/docs' ) !== - 1 ) {
4141 $ ( '.hide_select_in_en' ) . hide ( ) ;
42- $ ( '.dropdown-toggle' ) . addClass ( 'hide_doc_zh' )
42+ $ ( '.lang- dropdown-toggle' ) . addClass ( 'hide_doc_zh' )
4343 } else {
44- $ ( '.dropdown-toggle' ) . removeClass ( 'hide_doc_zh' )
44+ $ ( '.lang- dropdown-toggle' ) . removeClass ( 'hide_doc_zh' )
4545 }
4646</ script >
4747{{ end }}
You can’t perform that action at this time.
0 commit comments