Skip to content

Commit

Permalink
Merge pull request #60 from Eckerdecker/master
Browse files Browse the repository at this point in the history
expose showInputError and close methods from swal object
  • Loading branch information
@oitozero authored Sep 12, 2016
2 parents 8df6c30 + ebd2db9 commit 577e998
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.1.1

## Features

- expose showInputError and close methods from swal object


## 1.1.0

## Features
Expand Down
8 changes: 4 additions & 4 deletions SweetAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ angular.module('oitozero.ngSweetAlert', [])
},
showInputError: function(message) {
$rootScope.$evalAsync(function(){
swal.showInputError( message );
});
swal.showInputError( message );
});
},
close: function() {
$rootScope.$evalAsync(function(){
swal.close();
});
swal.close();
});
}
};

Expand Down
2 changes: 1 addition & 1 deletion SweetAlert.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 577e998

Please sign in to comment.