Skip to content

Commit

Permalink
changed highlight render
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Oct 8, 2011
1 parent 64d96ef commit 27993a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/verses/highlight.js.coffee.erb
@@ -0,0 +1,3 @@
$('#highlight_<%=@verse.id.to_s%>').html('<a href="#" onclick="$(\'#commentsdisp_<%=@verse.id.to_s%>\').slideToggle(\'slow\', function(){});; return false;"><span id="highlight_<%=@verse.id.to_s%>" style="background-color:<%=@highlight.color rescue "white"%>"><span class="charge"><%=@verse.chapter.to_s%>:<%= @verse.number.to_s%></span> <%=@verse.text%></span></a>')

$('#commentsdisp_<%=@verse.id.to_s%>').hide()

0 comments on commit 27993a4

Please sign in to comment.