Fix onAlert
Merge pull request #1524 from bootstraponline/master

Fix onAlert