diff --git a/resource/js/docready.js b/resource/js/docready.js
index b451e8fff..70dae70ee 100644
--- a/resource/js/docready.js
+++ b/resource/js/docready.js
@@ -543,7 +543,7 @@ $(function() { // DOCUMENT READY
} else if (!search_lang) {
langPretty = $('a[hreflang=' + lang + ']').html();
search_lang = lang;
- if (!langPretty) { langPretty = $('a[hreflang="anything"]').html(); }
+ if (!langPretty) { langPretty = $('.lang-button-all').html(); }
$('#lang-dropdown-toggle').html(langPretty + ' ');
qlang = lang;
} else {
@@ -558,7 +558,7 @@ $(function() { // DOCUMENT READY
});
if (!search_lang_possible && search_lang !== 'anything') {
- langPretty = $('a[hreflang=""]').html();
+ langPretty = $('.lang-button-all').html();
$('#lang-dropdown-toggle').html(langPretty + ' ');
qlang = '';
createCookie('SKOSMOS_SEARCH_LANG', qlang, 365);