We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e88d5bd commit e67b8a6Copy full SHA for e67b8a6
lib/web/mage/backend/tabs.js
@@ -239,11 +239,14 @@ define([
239
// Extension for mage.tabs - Ajax functionality for tabs
240
$.widget('mage.tabs', $.mage.tabs, {
241
options: {
242
- ajaxOptions: {
243
- data: {
244
- isAjax: true,
245
- 'form_key': typeof FORM_KEY !== 'undefined' ? FORM_KEY : null
246
- }
+ beforeLoad: function( event, ui ) {
+ ui.ajaxSettings.type = 'POST';
+ ui.ajaxSettings.hasContent = true;
+ ui.jqXHR.setRequestHeader("Content-Type", ui.ajaxSettings.contentType);
+ ui.ajaxSettings.data = jQuery.param(
247
+ {isAjax: true, 'form_key': typeof FORM_KEY !== 'undefined' ? FORM_KEY : null},
248
+ ui.ajaxSettings.traditional
249
+ );
250
},
251
252
/**
0 commit comments