Skip to content

Commit

Permalink
fix readmore
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrebs5 committed Jun 2, 2018
1 parent 21dec8c commit 12ecdd0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/views/application_letters/check.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
<dl>
<dt><%= ApplicationLetter.human_attribute_name(:motivation) %>:</dt>
<dd id="application-motivation" data-orig-text="<%= simple_format(@application_letter.motivation) %>">
<%= truncate simple_format(@application_letter.motivation), length: 300 do
link_to I18n.t('events.list.read_on'),
<%= simple_format(truncate @application_letter.motivation, length: 300, escape: false) %>
<%= link_to I18n.t('events.list.read_on'),
'javascript:jQuery("#application-motivation")
.text(jQuery("#application-motivation")
.attr("data-orig-text")); void(0)'
end %>
.html(jQuery("#application-motivation")
.attr("data-orig-text")); void(0)' %>
</dd>
<dt><%= ApplicationLetter.human_attribute_name(:organisation) %>:</dt>
<dd><%= @application_letter.organisation %></dd>
Expand Down

0 comments on commit 12ecdd0

Please sign in to comment.