Skip to content

Commit

Permalink
Add complete Callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Ramakers committed Feb 12, 2015
1 parent 731ea02 commit 46982b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/private/js/bluetea/ajaxProtocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -55,6 +56,7 @@ $(function() {
// Execute successCallback
options.successCallback(this._ajaxData);
}, this))
.complete(options.completeCallback)
.fail(options.failCallback)
.always(options.readyCallback);
},
Expand Down

0 comments on commit 46982b7

Please sign in to comment.