layoutswitch robustisiert
This commit is contained in:
		
							parent
							
								
									54de8cc4be
								
							
						
					
					
						commit
						e398011737
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		|  | @ -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
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								uhr.js
									
										
									
									
									
								
							|  | @ -97,6 +97,9 @@ function switchTheme(theme) { | |||
| function switchLayout(locale) { | ||||
| 	stopClock(); | ||||
| 	currentLayout = layout[locale]; | ||||
| 	if (currentLayout == undefined) { | ||||
| 		currentLayout = layout['default']; | ||||
| 	} | ||||
| 	renderLayout(); | ||||
| 	if (isOn()) { | ||||
| 		startClock(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue