【问题标题】:twitter bootstrap modals not working when pushed to Heroku推到 Heroku 时,推特引导模式不起作用
【发布时间】:2012-11-01 20:35:02
【问题描述】:

模式在本地工作,但是当我推送时,它们没有出现。不是我必须点击才能显示的那些,也不是应该自动显示的那些。

有人遇到过这个问题吗?

<!-- 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>

【问题讨论】:

  • 我猜是 javascript 的问题,甚至可能不存在。您的浏览器控制台中是否有任何错误?您能否链接到该网站,以便我们更好地诊断问题?

标签: javascript ruby-on-rails heroku twitter-bootstrap


【解决方案1】:

回答这个问题:

Heroku assets for Twipsy and Tablesorter not working, locally yes

一个 gem 得到了更新,并颠倒了 appliaction.js 中加载 js 的顺序。放置需要树。最后修复它。

【讨论】:

    猜你喜欢
    • 2020-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多