This reverts commit b828c7bda0
.
It introduced a bug in the behavior of the reply input field. E.g. toggling the article type was no longer possible.
This commit is contained in:
parent
4d0707a938
commit
8749190a51
1 changed files with 9 additions and 3 deletions
|
@ -60,6 +60,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
||||||
|
|
||||||
@setArticleTypePre(data.type.name, data.signaturePosition)
|
@setArticleTypePre(data.type.name, data.signaturePosition)
|
||||||
|
|
||||||
|
@openTextarea(null, true)
|
||||||
for key, value of data.article
|
for key, value of data.article
|
||||||
if key is 'body'
|
if key is 'body'
|
||||||
@$("[data-name=\"#{key}\"]").html(value)
|
@$("[data-name=\"#{key}\"]").html(value)
|
||||||
|
@ -149,9 +150,14 @@ class App.TicketZoomArticleNew extends App.Controller
|
||||||
if @subscribeIdTextModule
|
if @subscribeIdTextModule
|
||||||
App.Ticket.unsubscribe(@subscribeIdTextModule)
|
App.Ticket.unsubscribe(@subscribeIdTextModule)
|
||||||
|
|
||||||
$(window).off('click.ticket-zoom-select-type')
|
@releaseGlobalClickEvents()
|
||||||
|
|
||||||
|
releaseGlobalClickEvents: ->
|
||||||
|
$(window).off 'click.ticket-zoom-select-type'
|
||||||
|
$(window).off 'click.ticket-zoom-textarea'
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
|
@releaseGlobalClickEvents()
|
||||||
ticket = App.Ticket.fullLocal(@ticket_id)
|
ticket = App.Ticket.fullLocal(@ticket_id)
|
||||||
|
|
||||||
@html App.view('ticket_zoom/article_new')(
|
@html App.view('ticket_zoom/article_new')(
|
||||||
|
@ -511,7 +517,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
||||||
options:
|
options:
|
||||||
duration: duration
|
duration: duration
|
||||||
easing: 'easeOutQuad'
|
easing: 'easeOutQuad'
|
||||||
complete: => @textarea.off('focusout.ticket-zoom-textarea').on('focusout.ticket-zoom-textarea', @closeTextarea)
|
complete: => $(window).off('click.ticket-zoom-textarea').on('click.ticket-zoom-textarea', @closeTextarea)
|
||||||
|
|
||||||
@textBubble.velocity
|
@textBubble.velocity
|
||||||
properties:
|
properties:
|
||||||
|
@ -556,7 +562,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
||||||
|
|
||||||
closeTextarea: =>
|
closeTextarea: =>
|
||||||
if !@textarea.text().trim() && !@attachments.length && not @isIE10()
|
if !@textarea.text().trim() && !@attachments.length && not @isIE10()
|
||||||
@textarea.off('focusout.ticket-zoom-textarea')
|
$(window).off 'click.ticket-zoom-textarea'
|
||||||
|
|
||||||
@textarea.velocity
|
@textarea.velocity
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in a new issue