]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daf: fix the ajax error callback for rule control
authorJiří Helebrant <jiri.helebrant@nic.cz>
Tue, 31 Mar 2020 12:48:18 +0000 (14:48 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 2 Apr 2020 11:57:31 +0000 (13:57 +0200)
modules/daf/daf.js

index d8288192f57f2235c993e09618c6ac2e37f8a9b3..4c3db79b88e93730ed5f5dc7bf6d4395970dfc0a 100644 (file)
@@ -118,7 +118,7 @@ function ruleControl(cell, type, url, action) {
                url: 'daf/' + row.data('rule-id') + url,
                type: type,
                success: action,
-               fail: function (data) {
+               error: function (data) {
                        row.show();
                        const reason = data.responseText.length > 0 ? data.responseText : 'internal error';
                        cell.find('.alert').remove();