Skip to content

Commit

Permalink
Remove jQuery from issue reference context popup attach (#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 <git@yardenshoham.com>
  • Loading branch information
yardenshoham authored Feb 17, 2024
1 parent cb85ebc commit c282d37
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 c282d37

Please sign in to comment.