Next try to fix see more feature.

This commit is contained in:
Martin Edenhofer 2012-05-05 18:06:11 +02:00
parent 3abf19eb2d
commit f2f098d496

View file

@ -82,9 +82,9 @@ class Index extends App.Controller
if article_lines.length > preview
preview_mode = true
if article_lines[preview] is ''
article_lines.splice( preview-1, 0, "----SEEMORE----" )
else
article_lines.splice( preview, 0, "----SEEMORE----" )
else
article_lines.splice( preview + 1, 0, "----SEEMORE----" )
article['html'] = article_lines.join("\n")
article['html'] = window.linkify( article['html'] )
notify = "<a href=\"#\" class=\"show_toogle\">" + T('See more') + "</a>"