0

내 프로젝트에 Sass-Bootstrap 보석을 사용하고 있으며 내 application.js 파일에 다음 항목이 있습니다.자바 스크립트는 무엇입니까?

// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD 
// GO AFTER THE REQUIRES BELOW. 
// 
//= require jquery 
//= require jquery_ujs 
//= require bootstrap 
//= require bootstrap-scrollspy 
//= require bootstrap-modal 
//= require bootstrap-dropdown 
//= require_tree 

나는 모달 기능을 활용하는 내 application.html.erb 파일에 다음과 같은 마크 업을 포함하고 있습니다.

<div class="modal" id="loginModal"> 
      <div class="modal-header"> 
      <button class="close" data-dismiss="modal">×</button> 
      <h3>Sign in</h3> 
      </div> 
      <div class="modal-body"> 
      <%= simple_form_for(resource, :as => resource_name, :url => session_path(resource_name),:html => { :class => 'form-horizontal' }) do |f| %> 
        <%= f.input :email, :required => false, :autofocus => true %> 
        <%= f.input :password, :required => false %> 
        <%= f.input :remember_me, :as => :boolean if devise_mapping.rememberable? %> 
        <%= f.button :submit, "Sign in", :class => 'btn' %> 
       <% end %> 
      </div> 
     </div> 

하지만 어떤 이유로. 모달은 심지어 다른 파일에서 javascript/coffescript가없는 경우에도 ... 무엇이라고 부르는 것입니까? 기본 동작입니까?

답변

0

시도 :

<div class="modal hide" id="loginModal"> 
+0

doh..silly의 mistake..thanks! – Keva161

+1

나는 개인적인 투쟁에서 압니다. 나는 그것이 잘 문서화되지 않은 것을 발견했다. – evanbikes