Webserver: -fix: translation destroys the design of the buttons on the first screen
This commit is contained in:
1 parent
43be5ff5cf
commit
e713afa8e2
1 file changed
+8
@@ -1393,6 +1393,13 @@ function initTranslation() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//repair broken buttons on the first page (get broken while translating)
|
||||||
|
var repairButtons = function () {
|
||||||
|
$($('#discoverConnect')[0].childNodes).wrap('<span class="ui-btn-inner"><span class="ui-btn-text"> </span></span>');
|
||||||
|
$($('#discoverReadQr')[0].childNodes).wrap('<span class="ui-btn-inner"><span class="ui-btn-text"> </span></span>');
|
||||||
|
};
|
||||||
|
|
||||||
$.i18n.init({
|
$.i18n.init({
|
||||||
resStore: translations,
|
resStore: translations,
|
||||||
supportedLngs: ['en', 'de'],
|
supportedLngs: ['en', 'de'],
|
||||||
@@ -1401,5 +1408,6 @@ function initTranslation() {
|
|||||||
nsseparator: ':::'
|
nsseparator: ':::'
|
||||||
}).done(function () {
|
}).done(function () {
|
||||||
$('body').i18n();
|
$('body').i18n();
|
||||||
|
repairButtons();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user