diff options
author | André Jaenisch <Ryuno-Ki@users.noreply.github.com> | 2022-06-06 06:58:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 12:58:53 +0800 |
commit | ebeb6e7c71a0c763b52153f4eb427e7c5b89a95e (patch) | |
tree | a650d6b2c3ecafdd49900f500f1ede27e374eaed /web_src | |
parent | df0fb17d041b34854c5a0bdd4a14ad50807ded4a (diff) | |
download | gitea-ebeb6e7c71a0c763b52153f4eb427e7c5b89a95e.tar.gz gitea-ebeb6e7c71a0c763b52153f4eb427e7c5b89a95e.zip |
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>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/features/repo-home.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-home.js b/web_src/js/features/repo-home.js index f0ea18dd10..c4bdf3d450 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) => { |