Added content_type to ticket_articles.

This commit is contained in:
Martin Edenhofer 2014-12-27 14:10:09 +01:00
parent f8340b3b3b
commit cfc06fe1a8
3 changed files with 27 additions and 24 deletions

View file

@ -329,25 +329,27 @@ class App.TicketCreate extends App.Controller
# create article
if sender.name is 'Customer'
params['article'] = {
to: (group && group.name) || ''
from: params.customer_id_autocompletion
cc: params.cc
subject: params.subject
body: params.body
type_id: type.id
sender_id: sender.id
form_id: @form_id
to: (group && group.name) || ''
from: params.customer_id_autocompletion
cc: params.cc
subject: params.subject
body: params.body
type_id: type.id
sender_id: sender.id
form_id: @form_id
content_type: 'text/html'
}
else
params['article'] = {
from: (group && group.name) || ''
to: params.customer_id_autocompletion
cc: params.cc
subject: params.subject
body: params.body
type_id: type.id
sender_id: sender.id
form_id: @form_id
from: (group && group.name) || ''
to: params.customer_id_autocompletion
cc: params.cc
subject: params.subject
body: params.body
type_id: type.id
sender_id: sender.id
form_id: @form_id
content_type: 'text/html'
}
ticket.load(params)

View file

@ -178,13 +178,14 @@ class Index extends App.ControllerContent
# create article
params['article'] = {
from: "#{ @Session.get().displayName() }"
to: (group && group.name) || ''
subject: params.subject
body: params.body
type_id: type.id
sender_id: sender.id
form_id: @form_id
from: "#{ @Session.get().displayName() }"
to: (group && group.name) || ''
subject: params.subject
body: params.body
type_id: type.id
sender_id: sender.id
form_id: @form_id
content_type: 'text/html'
}
ticket.load(params)

View file

@ -52,7 +52,7 @@
<div class="text-bubble">
<div class="bubble-arrow"></div>
<div class="js-textarea ticketEdit-body" contenteditable="true" data-name="body"><%= @article.body %></div>
<div class="js-textarea ticketEdit-body" contenteditable="true" data-name="body"><%- @article.body %></div>
<!-- .text-bubble grows with textarea (and expanding clone) -->
<div class="attachments"></div>
<div class="article-attachment u-unclickable u-textTruncate">