js: fix $.ajax() on success (#77914)
gitea/gadjo/pipeline/head This commit looks good Details

replace $.ajax().success() by $.ajax().done()
This commit is contained in:
Lauréline Guérin 2023-05-25 14:31:48 +02:00
parent ca4a67d56b
commit 0ba1626591
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ var gadjo_js = gadjo_js || {};
type: 'POST',
url: action_url,
data: $form.serialize(),
}).success(function(data) {
}).done(function(data) {
$anchor.trigger('gadjo:dialog-done', data);
$content.dialog('destroy');
}).fail(function() { $anchor.trigger('gadjo:dialog-submit-error');