From f2f098d496c81a2cb36abe3eed65b7e0f6b3bf23 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 5 May 2012 18:06:11 +0200 Subject: [PATCH] Next try to fix see more feature. --- .../javascripts/app/controllers/agent_ticket_zoom.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee index bcb2b8db3..c034502ab 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -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 = "" + T('See more') + ""