twitter bootstrap - Can't open modal, when already one modal is showing -


i can't get: when i'm opening sign_up modal login modal - working, when i'm trying same in sign_up modal - doesn't work.

here code view , partials:

          buttons <a class="btn" data-toggle="modal" href="#login">login</a> <a class="btn" data-toggle="modal" href="#sign_up" >sign up</a> -------------------------------  <div class="modal hide" id="login">    <%= render :template => "devise/sessions/new" %>   </div>  <div class="modal hide" id="sign_up">   <%= render :template => "devise/registrations/new" %>  </div> ------------------------------          redirection links <%= link_to('or sign up', "#sign_up", "data-toggle" => "modal") %> <%= link_to('or login', "#login", "data-toggle" => "modal") %> 

i solved problem using code, when opening login modal sign_up:

 $("#signup").click(function() {//signup - link id $("#login").removeattr("static"); $('#login').modal('hide'); $('body').removeclass('modal-open'); $('.modal-backdrop').remove(); }); 

and opening sign_up login modal:

 $("#signin").click(function() {  $("#sign_up").removeattr("static");  $('#sign_up').modal('hide');  $('body').removeclass('modal-open');  $('.modal-backdrop').remove();  }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -