0
レール4のブートストラップモーダルに問題があります。画像をクリックするとモーダルを表示しようとしています。そして、実際にはモーダルが表示されますが、数秒間しか表示されません。 これは私が持っているコードですブートストラップモーダルがレールに表示されない4
を(私は、ブートストラップ-SASS宝石を使用しています):
<%= link_to image_tag (destacado.imagen.small), data: {toggle: "modal", target: "#myModal"} %>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
私が間違っているの何任意のアイデア?助けをよろしくお願いします。 Peyu
あなたはこれを見ることができます:http://stackoverflow.com/questions/15152486/how-to-add-bootstrap-modal-with-link-to-so-the-link-content-openin -modal –
私はすでにそれを試してみましたが、単純なリンクでうまく動作しますが、画像をクリックするとうまくいかない... – Peyu