bootstrap-prototype icon indicating copy to clipboard operation
bootstrap-prototype copied to clipboard

TypeError: BootStrap.Modal is not a constructor

Open CreativeBlunder opened this issue 11 years ago • 3 comments

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">&times;</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?

CreativeBlunder avatar Aug 04 '14 17:08 CreativeBlunder

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.

jwestbrook avatar Aug 06 '14 19:08 jwestbrook

Any work on modal? If not, I will take a stab at it. As is, I have several fixes in dev right now.

kstubs avatar Aug 18 '15 22:08 kstubs

go for it

jwestbrook avatar Aug 19 '15 00:08 jwestbrook