From 5d6ef1e42f182e44f00668424e5f25893c5e1379 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Helebrant?= Date: Tue, 31 Mar 2020 14:48:18 +0200 Subject: [PATCH] daf: fix the ajax error callback for rule control --- modules/daf/daf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/daf/daf.js b/modules/daf/daf.js index d8288192f..4c3db79b8 100644 --- a/modules/daf/daf.js +++ b/modules/daf/daf.js @@ -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(); -- 2.47.2