Skip to content

Commit 9105e33

Browse files
committed
Override abp.ajax default dataType.
1 parent e199884 commit 9105e33

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Account/_TenantChange.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
},

src/AbpCompanyName.AbpProjectName.WebMpa/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
},

src/AbpCompanyName.AbpProjectName.WebMpa/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
},

src/AbpCompanyName.AbpProjectName.WebMpa/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
},

src/AbpCompanyName.AbpProjectName.WebSpaAngular/Views/Account/_TenantChange.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
$('.tenant-change-component a')
33
.click(function (e) {
44
e.preventDefault();
5-
$.ajax({
5+
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
},

0 commit comments

Comments
 (0)