Skip to content

Commit b6d822e

Browse files
committed
Override abp.ajax default dataType.
Resolve #4938
1 parent fe44da2 commit b6d822e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/view-resources/Views/Roles/Index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
abp.ajax({
2727
url: abp.appPath + 'Roles/EditRoleModal?roleId=' + roleId,
2828
type: 'POST',
29-
contentType: 'application/html',
29+
dataType: 'html',
3030
success: function (content) {
3131
$('#RoleEditModal div.modal-content').html(content);
3232
},

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/view-resources/Views/Shared/Components/TenantChange/Default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
abp.ajax({
66
url: abp.appPath + 'Account/TenantChangeModal',
77
type: 'POST',
8-
contentType: 'application/html',
8+
dataType: 'html',
99
success: function (content) {
1010
$('#TenantChangeModal div.modal-content').html(content);
1111
},

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/view-resources/Views/Tenants/Index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
abp.ajax({
2626
url: abp.appPath + 'Tenants/EditTenantModal?tenantId=' + tenantId,
2727
type: 'POST',
28-
contentType: 'application/html',
28+
dataType: 'html',
2929
success: function (content) {
3030
$('#TenantEditModal div.modal-content').html(content);
3131
},

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/view-resources/Views/Users/Index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
abp.ajax({
3333
url: abp.appPath + 'Users/EditUserModal?userId=' + userId,
3434
type: 'POST',
35-
contentType: 'application/html',
35+
dataType: 'html',
3636
success: function (content) {
3737
$('#UserEditModal div.modal-content').html(content);
3838
},

0 commit comments

Comments
 (0)