public
Created

invitations/create.js.erb

  • Download Gist
sign in popup
1 2 3 4 5 6
<% if @invitaion.valid? %>
window.location.replace("<%= signin_url %>")
<% else %>
var modal = "<%= render(:partial => 'invitations/form', :locals => {:invitation => @invitation) %>";
$('#signin-modal').html($(modal));
<% end %>

Fixed a couple brackets on the var line:

<% if @invitaion.valid? %>
  window.location.replace("<%= signin_url %>")
<% else %>
  var modal = "<%= render :partial => 'invitations/form', :locals => { :invitation => @invitation } %>";
  $('#signin-modal').html($(modal));
<% end %>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.