A minimal change to replace data calls with attr as per guidelines (#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]>
This commit is contained in:
André Jaenisch
2022-06-06 12:58:53 +08:00
committed by GitHub
co-authored by Lunny Xiao wxiaoguang
parent df0fb17d04
commit ebeb6e7c71
+1 -1
View File
@@ -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) => {