mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Use explicit jQuery import, remove unused eslint globals (#18435)
- Don't rely on globals (window.$) for jQuery import - Remove eslint globals no longer in use
This commit is contained in:
		| @@ -1,3 +1,7 @@ | ||||
| import $ from 'jquery'; | ||||
|  | ||||
| const preventListener = (e) => e.preventDefault(); | ||||
|  | ||||
| /** | ||||
|  * Attaches `input` handlers to markdown rendered tasklist checkboxes in comments. | ||||
|  * | ||||
| @@ -5,9 +9,6 @@ | ||||
|  * is set accordingly and sent to the server. On success it updates the raw-content on | ||||
|  * error it resets the checkbox to its original value. | ||||
|  */ | ||||
|  | ||||
| const preventListener = (e) => e.preventDefault(); | ||||
|  | ||||
| export function initMarkupTasklist() { | ||||
|   for (const el of document.querySelectorAll(`.markup[data-can-edit=true]`) || []) { | ||||
|     const container = el.parentNode; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user