t4t5/sweetalert — pull request #201 by aliemre (2014-11-18 13:20:22+00:00)
Title: Basic close event added

`hide` or `close` parameter closes the modal properly. For example in Ajax request the following code is used to open and close the modal the show process of the Ajax request:
``` js
$(document).ajaxStart(function(){
swal("Processing..", "Please wait until the process is done.");
});
$(document).ajaxStop(function(){
swal('close');
});
```