fixed theme switcher
This commit is contained in:
		
							parent
							
								
									1353351c0e
								
							
						
					
					
						commit
						d6f88dacf8
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -7,6 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| <head> | <head> | ||||||
|     <title>{{ i18n.title }}</title> |     <title>{{ i18n.title }}</title> | ||||||
|  |     <script type="text/javascript" src="{{ url_for('static', filename='/js/toggle.js') }}?t={{ epoch }}"></script> | ||||||
|     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/base.css') }}?t={{ epoch }}"> |     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/base.css') }}?t={{ epoch }}"> | ||||||
|     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/colors.css') }}?t={{ epoch }}"> |     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/colors.css') }}?t={{ epoch }}"> | ||||||
|     {%- if config.animations == "1" or config.animations == "true" %} |     {%- if config.animations == "1" or config.animations == "true" %} | ||||||
|  | @ -38,6 +39,9 @@ | ||||||
|             {%- endblock %} |             {%- endblock %} | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|  |     <script type="text/javascript"> | ||||||
|  |         initToggle(); | ||||||
|  |     </script> | ||||||
| </body> | </body> | ||||||
| 
 | 
 | ||||||
| </html> | </html> | ||||||
|  | @ -1,7 +1,6 @@ | ||||||
| {% extends 'base.html' %} | {% extends 'base.html' %} | ||||||
| 
 | 
 | ||||||
| {% block main %} | {% block main %} | ||||||
|         <script type="text/javascript" src="{{ url_for('static', filename='/js/toggle.js') }}?t={{ epoch }}"></script> |  | ||||||
|         <script type="text/javascript" src="{{ url_for('static', filename='/js/autoReload.js') }}?t={{ epoch }}"></script> |         <script type="text/javascript" src="{{ url_for('static', filename='/js/autoReload.js') }}?t={{ epoch }}"></script> | ||||||
|         <script type="text/javascript" src="{{ url_for('static', filename='/js/shortcut.js') }}?t={{ epoch }}"></script> |         <script type="text/javascript" src="{{ url_for('static', filename='/js/shortcut.js') }}?t={{ epoch }}"></script> | ||||||
| 
 | 
 | ||||||
|  | @ -38,7 +37,6 @@ | ||||||
|         </div> |         </div> | ||||||
| 
 | 
 | ||||||
|         <script type="text/javascript"> |         <script type="text/javascript"> | ||||||
|             initToggle(); |  | ||||||
|             autoReload(); |             autoReload(); | ||||||
|             monitorRadio(); |             monitorRadio(); | ||||||
|         </script> |         </script> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue