mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
22 lines
828 B
Plaintext
22 lines
828 B
Plaintext
<script>
|
|
function unlinkProvider(providerId, id) {
|
|
if (confirm('Are you sure you want to unlink this organization from its provider?')) {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: `@Url.Action("Delete", "ProviderOrganizations")?providerId=${providerId}&id=${id}`,
|
|
dataType: 'json',
|
|
contentType: false,
|
|
processData: false,
|
|
success: function (response) {
|
|
alert("Successfully unlinked provider");
|
|
window.location.href = `@Url.Action("Edit", "Providers")?id=${providerId}`;
|
|
},
|
|
error: function (response) {
|
|
alert("Error!: " + response.responseText);
|
|
}
|
|
});
|
|
}
|
|
return false;
|
|
}
|
|
</script>
|