mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Remove jQuery from issue reference context popup attach (#29216)
- Switched to plain JavaScript - Tested the context popup functionality and it works as before # Demo using JavaScript without jQuery  Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
		| @@ -1,11 +1,10 @@ | ||||
| import $ from 'jquery'; | ||||
| import {createApp} from 'vue'; | ||||
| import ContextPopup from '../components/ContextPopup.vue'; | ||||
| import {parseIssueHref} from '../utils.js'; | ||||
| import {createTippy} from '../modules/tippy.js'; | ||||
|  | ||||
| export function initContextPopups() { | ||||
|   const refIssues = $('.ref-issue'); | ||||
|   const refIssues = document.querySelectorAll('.ref-issue'); | ||||
|   attachRefIssueContextPopup(refIssues); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yarden Shoham
					Yarden Shoham