Skip to content

Commit 64b9ea2

Browse files
authored
Merge pull request #467 from ryancyq/enhancement/handle-unauthorize-ajax
Replace jquery ajax with abp.ajax
2 parents 0baf811 + 2d6b1ea commit 64b9ea2

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/view-resources/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+
})();

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

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/view-resources/Views/Shared/Components/TenantChange/Default.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+
})();

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/view-resources/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+
})();

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 3 additions & 3 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',
@@ -65,7 +65,7 @@
6565
abp.ui.clearBusy(_$modal);
6666
});
6767
});
68-
68+
6969
_$modal.on('shown.bs.modal', function () {
7070
_$modal.find('input:not([type=hidden]):first').focus();
7171
});
@@ -89,4 +89,4 @@
8989
);
9090
}
9191
});
92-
})();
92+
})();

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)