Skip to content

Commit 5da00d8

Browse files
committed
replace jquery ajax with abp ajax
1 parent 9e2cad1 commit 5da00d8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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',
88
contentType: 'application/html',
@@ -12,4 +12,4 @@
1212
error: function (e) { }
1313
});
1414
});
15-
})();
15+
})();

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Roles/Index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var roleId = $(this).attr("data-role-id");
2424

2525
e.preventDefault();
26-
$.ajax({
26+
abp.ajax({
2727
url: abp.appPath + 'Roles/EditRoleModal?roleId=' + roleId,
2828
type: 'POST',
2929
contentType: 'application/html',
@@ -83,4 +83,4 @@
8383
);
8484
}
8585
});
86-
})();
86+
})();

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Tenants/Index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var tenantId = $(this).attr("data-tenant-id");
2323

2424
e.preventDefault();
25-
$.ajax({
25+
abp.ajax({
2626
url: abp.appPath + 'Tenants/EditTenantModal?tenantId=' + tenantId,
2727
type: 'POST',
2828
contentType: 'application/html',
@@ -74,4 +74,4 @@
7474
);
7575
}
7676
});
77-
})();
77+
})();

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Users/Index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
var userId = $(this).attr("data-user-id");
3030

3131
e.preventDefault();
32-
$.ajax({
32+
abp.ajax({
3333
url: abp.appPath + 'Users/EditUserModal?userId=' + userId,
3434
type: 'POST',
3535
contentType: 'application/html',
@@ -89,4 +89,4 @@
8989
);
9090
}
9191
});
92-
})();
92+
})();

0 commit comments

Comments
 (0)