diff options
author | Yarden Shoham <git@yardenshoham.com> | 2024-03-20 01:39:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 23:39:36 +0000 |
commit | 55a8f4510af5ef67e484d45dd3789c29f120d58e (patch) | |
tree | 978356c5524d2626978a888ac8835abda5622ea4 /web_src/js/features | |
parent | 8bf4173e31a4018fb277c871df7d8d31c98dba0b (diff) | |
download | gitea-55a8f4510af5ef67e484d45dd3789c29f120d58e.tar.gz gitea-55a8f4510af5ef67e484d45dd3789c29f120d58e.zip |
Remove jQuery `.attr` from the issue author dropdown (#29915)
- Switched from jQuery `.attr` to plain javascript `.getAttribute`
- Tested the issue author dropdown functionality and it works as before
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'web_src/js/features')
-rw-r--r-- | web_src/js/features/repo-issue-list.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/features/repo-issue-list.js b/web_src/js/features/repo-issue-list.js index 880ecf9489..48658fd723 100644 --- a/web_src/js/features/repo-issue-list.js +++ b/web_src/js/features/repo-issue-list.js @@ -93,9 +93,9 @@ function initRepoIssueListAuthorDropdown() { const $searchDropdown = $('.user-remote-search'); if (!$searchDropdown.length) return; - let searchUrl = $searchDropdown.attr('data-search-url'); - const actionJumpUrl = $searchDropdown.attr('data-action-jump-url'); - const selectedUserId = $searchDropdown.attr('data-selected-user-id'); + let searchUrl = $searchDropdown[0].getAttribute('data-search-url'); + const actionJumpUrl = $searchDropdown[0].getAttribute('data-action-jump-url'); + const selectedUserId = $searchDropdown[0].getAttribute('data-selected-user-id'); if (!searchUrl.includes('?')) searchUrl += '?'; $searchDropdown.dropdown('setting', { |