Hello, I'm using a modal screen in my app, but it's with some errors. I need open a remote link on the modal screen.
I used this code below and it worked but when the screen model is opening have some bugs, errors, and after few seconds it's works fine. I need to fix it. For example it's look like have two modal opening at the same time. How can I fix it? How are you using a modal screen in this case? I'm using this code - it's here on this link https://github.com/twitter/bootstrap/issues/936#issuecomment-3622444 $('.to_modal').click(function(e) { e.preventDefault(); var href = $(e.target).attr('href'); if (href.indexOf('#') == 0) { $(href).modal('open'); } else { $.get(href, function(data) { $('<div class="modal fade" >' + data + '</div>').modal(); }); } }); and <a herf="/url/to/load" class="to_modal">link</a>
