Closed bvishny closed 11 years ago
Were you including bootstrap/js/alert.js in your page?
Same issue here. I included alert.js. The same error repeats on the given fiddle too.
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)
Fixed. My bad. Was loading bootstrap.js before jquery.
When the alerts close, this line of code returns:
TypeError: [Object object] has no method 'alert'
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:
$alert.delay(options.delay).fadeOut(function() { return $(this).alert("close"); });
After:
$alert.delay(options.delay).fadeOut(function() { return $(this) });