prevent ticket reply closing in IE10

This commit is contained in:
Felix Niklas 2014-10-07 23:43:21 +02:00
parent f9837d62c0
commit 814b6c3cce

View file

@ -734,9 +734,12 @@ class Edit extends App.Controller
@render()
if @defaults.body or Function('/*@cc_on return document.documentMode===10@*/')()
if @defaults.body or @isIE10()
@open_textarea(null, true)
isIE10: ->
Function('/*@cc_on return document.documentMode===10@*/')()
stopPropagation: (e) ->
e.stopPropagation()
@ -1028,7 +1031,7 @@ class Edit extends App.Controller
close_textarea: =>
@remove_textarea_catcher()
if !@textarea.text().trim() && !@attachments.length
if !@textarea.text().trim() && !@attachments.length && not @isIE10()
@textarea.velocity
properties: