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

@ -337,6 +337,7 @@ class App.TicketCreate extends App.Controller
type_id: type.id
sender_id: sender.id
form_id: @form_id
content_type: 'text/html'
}
else
params['article'] = {
@ -348,6 +349,7 @@ class App.TicketCreate extends App.Controller
type_id: type.id
sender_id: sender.id
form_id: @form_id
content_type: 'text/html'
}
ticket.load(params)

View file

@ -185,6 +185,7 @@ class Index extends App.ControllerContent
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">