minor adjustmen to the help language selector

This commit is contained in:
git-marijus 2017-08-24 22:32:28 +02:00
parent 9cb856d5fd
commit 383b7928cf
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ $(document).ready(function () {
window.history.pushState({}, '', '/' + pathParts.join('/')); window.history.pushState({}, '', '/' + pathParts.join('/'));
// Highlight the language in the language selector that is currently viewed // Highlight the language in the language selector that is currently viewed
$('.lang-selector').find('.lang-choice:contains("' + help_language + '")').css('font-weight','bold').css('background-color','lightgray'); $('.lang-selector').find('.lang-choice:contains("' + help_language + '")').addClass('active');
// Construct the links to the available translations based and populate the selector menu // Construct the links to the available translations based and populate the selector menu
$('.lang-selector').find('.lang-choice').each(function (idx, a) { $('.lang-selector').find('.lang-choice').each(function (idx, a) {

View File

@ -1,9 +1,9 @@
<div id="help-content" class="generic-content-wrapper"> <div id="help-content" class="generic-content-wrapper">
<div class="section-title-wrapper"> <div class="clearfix section-title-wrapper">
<div class="pull-right"> <div class="pull-right">
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown"> <button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-language" style="font-size: 1.4em;"></i><span class="caret"></span> <i class="fa fa-language" style="font-size: 1.4em;"></i>
</button> </button>
<div class="dropdown-menu dropdown-menu-right flex-column lang-selector"> <div class="dropdown-menu dropdown-menu-right flex-column lang-selector">
<a class="dropdown-item lang-choice" href="/help">de</a> <a class="dropdown-item lang-choice" href="/help">de</a>