Sweetalert Versions Save

A beautiful replacement for JavaScript's "alert"

v0.4.2

9 years ago

Changelog:

  • You can now install SweetAlert through NPM. Just run npm install sweetalert to get started!
  • AMD & CommonJS support! You can now avoid running SweetAlert as a global function if you want to. Thanks @danreeves and everyone else who has suggested this enhancement!
  • Ability to hide "OK/Confirm"-button with showConfirmButton: false. This can be used if you prefer using a timer, or in combination with allowOutsideClick.
  • Removal of generic class names (such as .confirm, .success... etc). All classes are now prefixed with .sa- to remove potential conflicts with your own stylesheets. Thanks @sushantdhiman!

v0.4.1

9 years ago

Changelog:

  • Add IE8 and IE9 support.
  • Update README with browser compatibility info
  • Initialize DOM elements on first usage instead of on page load (Thanks @peterjosling!)
  • [BUGFIX] Fix custom image size attribute

v0.4.0

9 years ago

Changelog:

  • Add NPM and Gulp file for automatic minification
  • Escape key now closes all modals
  • Programatically close modals with swal.close()
  • Fix bug to change the OK-button's text to "Confirm" when showing the cancel-button
  • Add html parameter to allow HTML code in modals
  • Allow the modal animation to be turned off by passing animation: false