简体   繁体   English

推到Heroku时,twitter引导程序模式不起作用

[英]twitter bootstrap modals not working when pushed to Heroku

The modals work locally, but when I push, they're not showing up. 模态在本地工作,但是当我按下时,它们不会出现。 Not the ones where I have to click to show up, nor the ones that should show up automatically. 不是我必须单击以显示的那些,也不是应该自动显示的那些。

Has anybody ever had this issue? 有人遇到过这个问题吗?

<!-- modal window for explaining -->
<div class="modal fade center" id="self-b" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header center">
    <h3 style="font-weight:normal;">First things first</h3>
  </div>
</div>

<script type="text/javascript">
  $('#self-b').modal()
</script>

Answer on this thread: 在此线程上回答:

Heroku assets for Twipsy and Tablesorter not working, locally yes Twipsy和Tablesorter的Heroku资产在本地不起作用

a gem got updated and inversed the order of loading js in appliaction.js. 宝石已更新,并颠倒了在appliaction.js中加载js的顺序。 Putting require tree . 放置要求树。 at the end fixed it. 最后修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM