Skip to content

Commit

Permalink
Merge pull request #3 from framakers/master
Browse files Browse the repository at this point in the history
Add complete Callback
  • Loading branch information
piwi91 committed Feb 13, 2015
2 parents 731ea02 + 46982b7 commit 5a8487b
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 5a8487b

Please sign in to comment.