Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
invitations/create.js.erb
<% if @invitaion.valid? %>
window.location.replace("<%= signin_url %>")
<% else %>
var modal = "<%= render(:partial => 'invitations/form', :locals => {:invitation => @invitation) %>";
$('#signin-modal').html($(modal));
<% end %>
@mcbsys

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.