瀏覽代碼

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>
tags/v1.18.0-dev
André Jaenisch 2 年之前
父節點
當前提交
ebeb6e7c71
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web_src/js/features/repo-home.js

+ 1
- 1
web_src/js/features/repo-home.js 查看文件

@@ -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) => {

Loading…
取消
儲存