diff --git a/public/js/gogs.js b/public/js/gogs.js index b7b30cb47..2d2aa0913 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -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; }); }