oitozero / ngSweetAlert

AngularJS wrapper for SweetAlert
MIT License
616 stars 160 forks source link

isConfirm is always false #47

Closed jfaraklit closed 9 years ago

jfaraklit commented 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"); } }); }

jfaraklit commented 9 years ago

ok. Updating to latest sweetAlert js and css file solved the issue. can close the issue.