From ebeb6e7c71a0c763b52153f4eb427e7c5b89a95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Mon, 6 Jun 2022 06:58:53 +0200 Subject: [PATCH] A minimal change to replace data calls with attr as per guidelines (#19900) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This affects the manage topics on a repository. Namely the done button once changes are made. Signed-off-by: André Jaenisch Co-authored-by: Lunny Xiao Co-authored-by: wxiaoguang --- web_src/js/features/repo-home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-home.js b/web_src/js/features/repo-home.js index f0ea18dd10c..c4bdf3d4506 100644 --- a/web_src/js/features/repo-home.js +++ b/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) => {