mirror of
https://github.com/gogs/gogs.git
synced 2025-05-25 08:54:05 +00:00
public: fix jquery3.x syntax error (#5951)
$.post().success -> $.post().done
This commit is contained in:
parent
4f70ab8e27
commit
40214ef109
@ -425,7 +425,7 @@ function initRepository() {
|
||||
if (confirm($this.data('locale'))) {
|
||||
$.post($this.data('url'), {
|
||||
"_csrf": csrf
|
||||
}).success(function () {
|
||||
}).done(function () {
|
||||
$('#' + $this.data('comment-id')).remove();
|
||||
});
|
||||
}
|
||||
@ -1310,7 +1310,7 @@ $(document).ready(function () {
|
||||
$.post($this.data('url'), {
|
||||
"_csrf": csrf,
|
||||
"id": $this.data("id")
|
||||
}).success(function (data) {
|
||||
}).done(function (data) {
|
||||
window.location.href = data.redirect;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user