diff --git a/Resources/private/js/bluetea/ajaxProtocol.js b/Resources/private/js/bluetea/ajaxProtocol.js index c138732..bb816c4 100755 --- a/Resources/private/js/bluetea/ajaxProtocol.js +++ b/Resources/private/js/bluetea/ajaxProtocol.js @@ -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() {}, @@ -60,6 +62,8 @@ $(function() { $.ajax({ url: options.url, type: options.type, + contentType: options.contentType, + processData: options.processData, data: options.data, beforeSend: options.beforeSendCallback }) @@ -135,4 +139,4 @@ $(function() { }); } }); -}); \ No newline at end of file +});