Created
November 14, 2012 05:11
-
-
Save wanghq/4070421 to your computer and use it in GitHub Desktop.
invitations/create.js.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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
Fixed a couple brackets on the
var
line: