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 <andre.jaenisch@posteo.de>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
tokarchuk/v1.17
André Jaenisch 3 years ago committed by GitHub
parent df0fb17d04
commit ebeb6e7c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/js/features/repo-home.js

@ -30,7 +30,7 @@ export function initRepoTopicBar() {
saveBtn.on('click', () => { saveBtn.on('click', () => {
const topics = $('input[name=topics]').val(); const topics = $('input[name=topics]').val();
$.post(saveBtn.data('link'), { $.post(saveBtn.attr('data-link'), {
_csrf: csrfToken, _csrf: csrfToken,
topics topics
}, (_data, _textStatus, xhr) => { }, (_data, _textStatus, xhr) => {

Loading…
Cancel
Save