I have a page with two modal dialogs. One is activated through data attributes, and works fine. The other is activated through a $('#myDialog').modal('show'). When I invoke this dialog, I only get the backdrop, but don't see the dialog. Closer inspection shows that the animation that brings it in from the top of the screen doesn't seem to be firing (it's still positioned off-screen). It's not the dialog itself (I've tried switching code around to bring up the "working" dialog with JS, to no avail).
Here's the code that's supposed to bring it up (coffeescript)
$scope.unlinkAccount = (account) -> $('#deleteAlert').modal('show')
Here's the modal html
<div id="deleteAlert" class="modal hide fade"> <div class="modal-header"> <h2>Are you sure you want to unlink {{deleteTarget.token}}?</h2> </div> <div class="modal-footer"> <button class="btn" >Cancel</button> <button class="btn btn-primary" ng-click="linkAccount()">Link</button> </div> </div>
Idears?
fadeclass?$('#deleteAlert').modal('show')on its own, does it work? Are there any other js actions that occur at the same time as the modal show?#deleteAlert?