Skip to content

Commit 6d0ace7

Browse files
yardenshohamsilverwind
authored andcommitted
Remove jQuery from issue reference context popup attach (go-gitea#29216)
- Switched to plain JavaScript - Tested the context popup functionality and it works as before # Demo using JavaScript without jQuery ![action](https://github.com/go-gitea/gitea/assets/20454870/1d2f173e-e626-4f7d-82c8-d1539d38d247) Signed-off-by: Yarden Shoham <[email protected]>
1 parent 1816f2e commit 6d0ace7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/js/features/contextpopup.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import $ from 'jquery';
21
import {createApp} from 'vue';
32
import ContextPopup from '../components/ContextPopup.vue';
43
import {parseIssueHref} from '../utils.js';
54
import {createTippy} from '../modules/tippy.js';
65

76
export function initContextPopups() {
8-
const refIssues = $('.ref-issue');
7+
const refIssues = document.querySelectorAll('.ref-issue');
98
attachRefIssueContextPopup(refIssues);
109
}
1110

0 commit comments

Comments
 (0)