mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 17:24:00 +01:00
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>
This commit is contained in:
parent
df0fb17d04
commit
ebeb6e7c71
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue