Skip to content

Commit

Permalink
Remove jQuery from issue reference context popup attach (go-gitea#29216)
Browse files Browse the repository at this point in the history
- 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]>
  • Loading branch information
yardenshoham authored and silverwind committed Feb 20, 2024
1 parent 1816f2e commit 6d0ace7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web_src/js/features/contextpopup.js
Original file line number Diff line number Diff line change
@@ -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);
}

Expand Down

0 comments on commit 6d0ace7

Please sign in to comment.