]> source.dussan.org Git - gitea.git/commitdiff
A minimal change to replace data calls with attr as per guidelines (#19900)
authorAndré Jaenisch <Ryuno-Ki@users.noreply.github.com>
Mon, 6 Jun 2022 04:58:53 +0000 (06:58 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Jun 2022 04:58:53 +0000 (12:58 +0800)
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>
web_src/js/features/repo-home.js

index f0ea18dd10c8a78f535f597dcbd92c990e71dc16..c4bdf3d4506dca4b9929719a07264fed8df22c21 100644 (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) => {