From 96656ff0d402dfd173cc5c14acc13009bca341ea Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 10 Jul 2024 17:42:23 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sebastian Meyer --- Resources/Private/JavaScript/dfgviewerScripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/Private/JavaScript/dfgviewerScripts.js b/Resources/Private/JavaScript/dfgviewerScripts.js index 7da62aa5f..d1517dbe6 100644 --- a/Resources/Private/JavaScript/dfgviewerScripts.js +++ b/Resources/Private/JavaScript/dfgviewerScripts.js @@ -30,8 +30,8 @@ $(document).ready(function () { // toggle for full metadata display in sidebar if ($('.control-bar .metadata-basic dl.tx-dlf-metadata-titledata').length > 1) { - metadataToggleLabelMore = ($('html[lang^="de"]')[0]) ? 'mehr Metadaten anzeigen' : 'more Metadata'; - metadataToggleLabelLess = ($('html[lang^="de"]')[0]) ? 'weniger Metadaten anzeigen' : 'less Metadata'; + var metadataToggleLabelMore = ($('html[lang^="de"]')[0]) ? 'mehr Metadaten anzeigen' : 'more Metadata'; + var metadataToggleLabelLess = ($('html[lang^="de"]')[0]) ? 'weniger Metadaten anzeigen' : 'less Metadata'; $('.control-bar .metadata-basic').append(''); if (Cookies.get('tx-dlf-allmetadata') === 'true') { $('.control-bar .metadata-basic').addClass('all-metadata').find('.metadata-toggle').text(metadataToggleLabelLess);