Fixed multiple attachment on d&d bug in zoom.
This commit is contained in:
parent
21de1e8bd8
commit
58b90fd489
2 changed files with 3 additions and 2 deletions
|
@ -137,6 +137,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
|||
ticket: ticket
|
||||
articleTypes: @articleTypes
|
||||
article: @defaults
|
||||
form_id: @form_id
|
||||
isCustomer: @isRole('Customer')
|
||||
)
|
||||
@setArticleType(@type)
|
||||
|
@ -167,7 +168,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
|||
|
||||
html5Upload.initialize(
|
||||
uploadUrl: App.Config.get('api_path') + '/ticket_attachment_upload',
|
||||
dropContainer: @el.get(0),
|
||||
dropContainer: @$('.article-add').get(0),
|
||||
cancelContainer: @cancelContainer,
|
||||
inputField: @$('.article-attachment input').get(0),
|
||||
key: 'File',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<form class="article-add <% if @article.internal: %>is-internal<% else: %>is-public<% end %>" data-type="<%= @article.type %>">
|
||||
<input type="hidden" name="type" value="<%= @article.type %>">
|
||||
<input type="hidden" name="internal" value="<%= @article.internal %>">
|
||||
<input type="hidden" name="form_id" value="<%= @article.form_id %>">
|
||||
<input type="hidden" name="form_id" value="<%= @form_id %>">
|
||||
<input type="hidden" name="in_reply_to" value="<%= @article.in_reply_to %>">
|
||||
<div class="editControls">
|
||||
<div class="js-avatar"></div>
|
||||
|
|
Loading…
Reference in a new issue