layoutswitch robustisiert

This commit is contained in:
Manuel Friedli 2013-11-25 13:42:03 +01:00
parent 54de8cc4be
commit e398011737
2 changed files with 4 additions and 3 deletions

View file

@ -47,9 +47,7 @@
$('#layoutswitcher').on('change', function() {
switchLayout(this.value);
});
currentLayout = layout['de_CH'];
renderLayout();
startClock();
switchLayout('de_CH');
});
</script>
</body>

3
uhr.js
View file

@ -97,6 +97,9 @@ function switchTheme(theme) {
function switchLayout(locale) {
stopClock();
currentLayout = layout[locale];
if (currentLayout == undefined) {
currentLayout = layout['default'];
}
renderLayout();
if (isOn()) {
startClock();