From e6eaad431664709a20b1f144242812de432da7bd Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 6 May 2012 22:46:27 +0200 Subject: [PATCH] Trim text to quote. --- .../javascripts/app/controllers/agent_ticket_zoom.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d2c97379e..ad03ca739 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -307,7 +307,7 @@ class Index extends App.Controller # add quoted text if needed if window.Session['UISeletion'] body = @el.find('[name="body"]').val() || '' - selection = window.Session['UISeletion'] + selection = window.Session['UISeletion'].trim() selection = selection.replace /^(.*)$/mg, (match) => '> ' + match body = body + selection