This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you using SweetAlert2 (Swal) and JQuery you can replace all alert and confirm that way. | |
// https://limonte.github.io/sweetalert2/ | |
// TIP: if you aren't using JQuery, use native JavaScript to create extend method. As bellow: | |
/* | |
function extend(a, b){ | |
for(var key in b) | |
if(b.hasOwnProperty(key)) | |
a[key] = b[key]; | |
return a; | |
} |