Fixed up viewing of notes on the 'Done' page. They can now be toggled just like on the main page.

Fixes #284.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@260 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2006-06-10 12:41:15 +00:00
parent 7b984328e3
commit b78b0f4eca
2 changed files with 4 additions and 7 deletions

View file

@ -14,12 +14,9 @@
<%= " - was due on " + format_date( done.due ) %>
<% end %>
<% if done.notes? %>
<%= "<a href=\"javascript:Element.toggle('" + done.id.to_s + "')\" title=\"Show notes\">" +
image_tag( "notes", :width=>"10", :height=>"10", :border=>"0") + "</a>" %>
<% m_notes = sanitize(markdown( done.notes )) %>
<%= "<div class=\"notes\" id=\"" + done.id.to_s + "\" style=\"display:none\">" + m_notes + "</div>" %>
<% end %>
<% if done.notes? -%>
<%= toggle_show_notes( done ) %>
<% end -%>
</td>
<% end %>
</tr>

View file

@ -8,4 +8,4 @@
</table>
</div>
</div><!- End of display_box -->
</div><!-- End of display_box -->