mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	
							
								
								
									
										6
									
								
								web_src/js/vendor/jquery.are-you-sure.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								web_src/js/vendor/jquery.are-you-sure.ts
									
									
									
									
										vendored
									
									
								
							| @@ -204,3 +204,9 @@ export function applyAreYouSure(selectorOrEl: string|Element|$, opts = {}) { | ||||
| export function reinitializeAreYouSure(selectorOrEl: string|Element|$) { | ||||
|   $(selectorOrEl).trigger('reinitialize.areYouSure'); | ||||
| } | ||||
|  | ||||
| export function ignoreAreYouSure(selectorOrEl: string|Element|$) { | ||||
|   // here we should only add "ignore-dirty" but not remove "dirty". | ||||
|   // because when using "enter" to submit a form, the "dirty" class will appear again before reloading. | ||||
|   $(selectorOrEl).addClass('ignore-dirty'); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user