Closed jfaraklit closed 9 years ago
for some reason is confirm is always false;
$scope.remove = function (item) { SweetAlert.swal({ title: "Are you sure?", text: "Your will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel plx!", closeOnConfirm: false, closeOnCancel: false }, function (isConfirm) { if (isConfirm) { SweetAlert.swal("Deleted!", "Your imaginary file has been deleted.", "success"); } else { SweetAlert.swal("Cancelled", "Your imaginary file is safe :)", "error"); } }); }
ok. Updating to latest sweetAlert js and css file solved the issue. can close the issue.
for some reason is confirm is always false;
$scope.remove = function (item) { SweetAlert.swal({ title: "Are you sure?", text: "Your will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel plx!", closeOnConfirm: false, closeOnCancel: false }, function (isConfirm) { if (isConfirm) { SweetAlert.swal("Deleted!", "Your imaginary file has been deleted.", "success"); } else { SweetAlert.swal("Cancelled", "Your imaginary file is safe :)", "error"); } }); }