Skip to content

Commit

Permalink
A minimal change to replace data calls with attr as per guidelines (g…
Browse files Browse the repository at this point in the history
…o-gitea#19900)

This affects the manage topics on a repository.
Namely the done button once changes are made.

Signed-off-by: André Jaenisch <[email protected]>

Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
  • Loading branch information
3 people authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent cd99576 commit adb3b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/repo-home.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function initRepoTopicBar() {
saveBtn.on('click', () => {
const topics = $('input[name=topics]').val();

$.post(saveBtn.data('link'), {
$.post(saveBtn.attr('data-link'), {
_csrf: csrfToken,
topics
}, (_data, _textStatus, xhr) => {
Expand Down

0 comments on commit adb3b56

Please sign in to comment.