From 46982b70e23ed292f59619d9dcffd001afc933f6 Mon Sep 17 00:00:00 2001 From: Frank Ramakers Date: Thu, 12 Feb 2015 17:18:49 +0100 Subject: [PATCH] Add complete Callback --- Resources/private/js/bluetea/ajaxProtocol.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Resources/private/js/bluetea/ajaxProtocol.js b/Resources/private/js/bluetea/ajaxProtocol.js index 574e2a1..2489de1 100755 --- a/Resources/private/js/bluetea/ajaxProtocol.js +++ b/Resources/private/js/bluetea/ajaxProtocol.js @@ -8,6 +8,7 @@ $(function() { beforeSendCallback: function() { $(document).blockUi('blockUI'); }, readyCallback: function() { $(document).blockUi('unblockUI'); }, successCallback: function() {}, + completeCallback: function() { }, failCallback: function(jqXHR, textStatus, errorThrown) { if (jqXHR.responseJSON !== undefined) { var data = jqXHR.responseJSON; @@ -55,6 +56,7 @@ $(function() { // Execute successCallback options.successCallback(this._ajaxData); }, this)) + .complete(options.completeCallback) .fail(options.failCallback) .always(options.readyCallback); },