As i'm using sweet alert in my project so i'm trying to change button text and add cancel button.
In some pages it works but in some it fails and only shows OK fixed, here is my screenshot below.

Its working as seen with Yes and Cancel button but in other page it shows as follows.
Here is my code which i'm using below.
function DeleteSubscription(CompanySubscriptionId, CompanyId) {
swal({
title: "Are you sure?",
text: ("You want to delete this Subscription !"),
type: "warning",
showCancelButton: true,
confirmButtonColor: "#5cb85c",
confirmButtonText: "Yes",
closeOnConfirm: false
})
.then(function (isConfirm) {
if (isConfirm) {
}
});
}
});
}
As on the second image its not showing button as Yes and Cancel only OK.
