prevent ticket reply closing in IE10
This commit is contained in:
parent
f9837d62c0
commit
814b6c3cce
1 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue