Skip to content

Commit

Permalink
Update new.html.erb (publiclab#4635)
Browse files Browse the repository at this point in the history
* Update new.html.erb

* Update _create_form.html.erb
  • Loading branch information
jywarren authored Jan 16, 2019
1 parent 73ea40d commit bdc9658
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions app/views/users/_create_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,16 @@
</div>
<% end %>

<% cache('feature_signup-notice', skip_digest: true) do %>
<%= feature('signup-notice') %>
<% end %>

<script>
$("a.signupToggle").click(function(){ //When a button that toggles the signup is clicked
setMode("signup"); //Sets the mode of the modal to signup so it only shows the signup partial
$('#loginModal').modal(); //Toggles the modal
})
</script>
<script>
function showFile(inp, disp){
function showFile(inp, disp){
if (inp.files && inp.files[0]){
var reader = new FileReader();
let dp = $(`.${disp}`);
Expand Down
4 changes: 0 additions & 4 deletions app/views/users/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
<br />

<%= render 'create_form' %>

<% cache('feature_signup-notice', skip_digest: true) do %>
<%= feature('signup-notice') %>
<% end %>

<br style="margin-bottom:20px;" />

Expand Down

0 comments on commit bdc9658

Please sign in to comment.