Skip to content

Commit

Permalink
A minimal change to replace data calls with attr as per guidelines (#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
3 people authored Jun 6, 2022
1 parent df0fb17 commit ebeb6e7
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 ebeb6e7

Please sign in to comment.