Skip to content

Commit

Permalink
Dropdown works now with multiple language-selectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinagerber committed Jan 9, 2020
1 parent 07de22b commit 94633fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions ftw/subsite/browser/resources/dropdown.js
Expand Up @@ -8,13 +8,11 @@
}
}(typeof self !== 'undefined' ? self : this, function ($) {
function hide() {
$('#portal-languageselector').removeClass('activated').addClass('deactivated');
$('[id="portal-languageselector"]').removeClass('activated').addClass('deactivated');
}

function toggle() {
$('#portal-languageselector')
.toggleClass('deactivated')
.toggleClass('activated');
$(this).parents('#portal-languageselector').toggleClass('activated').toggleClass('deactivated');
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion ftw/subsite/browser/resources/subsite-compiled.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94633fe

Please sign in to comment.