Trim text to quote.

This commit is contained in:
Martin Edenhofer 2012-05-06 22:46:27 +02:00
parent c04c1ee710
commit e6eaad4316

View file

@ -307,7 +307,7 @@ class Index extends App.Controller
# add quoted text if needed # add quoted text if needed
if window.Session['UISeletion'] if window.Session['UISeletion']
body = @el.find('[name="body"]').val() || '' body = @el.find('[name="body"]').val() || ''
selection = window.Session['UISeletion'] selection = window.Session['UISeletion'].trim()
selection = selection.replace /^(.*)$/mg, (match) => selection = selection.replace /^(.*)$/mg, (match) =>
'> ' + match '> ' + match
body = body + selection body = body + selection