Skip to content

Commit

Permalink
Merge pull request #5 from Nyrris/master
Browse files Browse the repository at this point in the history
Added options to change contentType and processData
  • Loading branch information
piwi91 authored Aug 4, 2016
2 parents aab8b03 + 23c194e commit ced5508
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/private/js/bluetea/ajaxProtocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ $(function() {
url: null,
data: null,
type: 'POST',
processData: true,
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
beforeSendCallback: function() { $(document).blockUi('blockUI'); },
readyCallback: function() { $(document).blockUi('unblockUI'); },
successCallback: function() {},
Expand Down Expand Up @@ -60,6 +62,8 @@ $(function() {
$.ajax({
url: options.url,
type: options.type,
contentType: options.contentType,
processData: options.processData,
data: options.data,
beforeSend: options.beforeSendCallback
})
Expand Down Expand Up @@ -135,4 +139,4 @@ $(function() {
});
}
});
});
});

0 comments on commit ced5508

Please sign in to comment.