Safari has issues, its fast becoming a cousin of IE6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/0.4.2/sweet-alert.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/0.4.2/sweet-alert.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.js"></script> <script> $(document).ready(function(){ $(document).on('click', '.delme', function() { var myid = $(this).attr('id'); swal({ title: "Are you sure?", text: "You will not be able to retrieve this client.", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel please!", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { $.ajax({ url: "delete-client.php", dataType: "html", type: 'POST', data: "id="+myid, success: function(data){ $('#line'+myid).hide(); } }); swal( 'Deleted!', 'Your client has been deleted.', 'success' ) } else { swal("Cancelled", "Your client is safe :)", "error"); } }); }); }); </script> |