From 84dfdc2b63c9a401edde226411379ec76d31d131 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 2 Oct 2012 08:25:47 +0200 Subject: [PATCH] Reduced preview lines from 15 to 10. --- .../app/controllers/agent_ticket_zoom.js.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 1273642fa..344858f9c 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -408,11 +408,11 @@ class Article extends App.Controller # build html body # cleanup body @article['html'] = @article.body.trim() - @article['html'].replace(/\n\r/g, "\n") - @article['html'].replace(/\n\n\n/g, "\n\n") + @article['html'].replace( /\n\r/g, "\n" ) + @article['html'].replace( /\n\n\n/g, "\n\n" ) # if body has more then x lines / else search for signature - preview = 15 + preview = 10 preview_mode = false article_lines = @article['html'].split(/\n/) if article_lines.length > preview @@ -433,7 +433,7 @@ class Article extends App.Controller notify + '
' if @article_changed @article['html'] = @article['html'] + '
' - + # hide signatures and so on else @article_changed = false