longlostnick / bootstrap-growl

Pretty simple jQuery plugin that turns standard Bootstrap alerts into "Growl-like" notifications.
http://ifightcrime.github.io/bootstrap-growl
MIT License
806 stars 207 forks source link

.alert("close") on line 57 causes no method 'alert' error #30

Closed bvishny closed 11 years ago

bvishny commented 11 years ago

When the alerts close, this line of code returns:

Deleting the alert part removes the error but may have some consequence I am not seeing. See below the code before and after my edit:

Before:

After:

troymccabe commented 11 years ago

Were you including bootstrap/js/alert.js in your page?

shivateja commented 11 years ago

Same issue here. I included alert.js. The same error repeats on the given fiddle too.

troymccabe commented 11 years ago

Can you post your markup? The fiddle wasn't including the JS, but here's one with the JS included: http://jsfiddle.net/ptcu9/1/ (note the edit to the HTML section)

shivateja commented 11 years ago

Fixed. My bad. Was loading bootstrap.js before jquery.