diff --git a/Vocaluxe/Website/js/main.js b/Vocaluxe/Website/js/main.js index c88c907d..7ad305a6 100644 --- a/Vocaluxe/Website/js/main.js +++ b/Vocaluxe/Website/js/main.js @@ -1393,6 +1393,13 @@ function initTranslation() { } } }; + + //repair broken buttons on the first page (get broken while translating) + var repairButtons = function () { + $($('#discoverConnect')[0].childNodes).wrap(' '); + $($('#discoverReadQr')[0].childNodes).wrap(' '); + }; + $.i18n.init({ resStore: translations, supportedLngs: ['en', 'de'], @@ -1401,5 +1408,6 @@ function initTranslation() { nsseparator: ':::' }).done(function () { $('body').i18n(); + repairButtons(); }); } \ No newline at end of file