Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

invitations/create.js.erb

View 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 %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.