TypeError: BootStrap.Modal is not a constructor
Hi,
Trying to get the modal working. When I click the link, I get the following error in the console:
TypeError: BootStrap.Modal is not a constructor
Here is the code for my modal:
<div class="modal fade hide" id="contact-modal" tabindex="-1" role="dialog" aria-labelledby="contact-modal-Label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="contact-modal-Label">Get In Touch</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
And the link for opening the modal:
<a class="telephone" data-toggle="modal" href="#contact-modal"><i class="fa fa-comments"></i>...</a>
Also, do you have plans to port the bootstrap v3 modal js to prototype?
Based on your sample I was able to make the modal trigger, can you give more information or a public link that illustrates the behavior you are getting?
http://cwaadmin.com/bootstrap/test.html
Yes I have already started on bootstrap v3 but havent been able to dedicate the time needed to get everything ported - I have another branch https://github.com/jwestbrook/bootstrap-prototype/tree/master-3.0 that has what I have finished so far.
Any work on modal? If not, I will take a stab at it. As is, I have several fixes in dev right now.
go for it