mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	move jquery-datetimepicker to npm/webpack (#10713)
- update to latest version and move to npm - adapt for api changes and css class rename - add specificity to arc-green rules as dependency css now loads later - use imports-loader to make it load correctly - fix some wrong paths in librejs Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		
							
								
								
									
										8
									
								
								web_src/js/features/datetimepicker.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								web_src/js/features/datetimepicker.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| export default async function initDateTimePicker(locale) { | ||||
|   await Promise.all([ | ||||
|     import(/* webpackChunkName: "datetimepicker" */'jquery-datetimepicker'), | ||||
|     import(/* webpackChunkName: "datetimepicker" */'jquery-datetimepicker/build/jquery.datetimepicker.min.css'), | ||||
|   ]); | ||||
|  | ||||
|   $.datetimepicker.setLocale(locale); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user