Fixes issue #2478 - Unable to update ticket with IE11.

This commit is contained in:
Martin Edenhofer 2019-02-15 16:45:48 +01:00
parent 20104e9b2e
commit 76a4b66417

View file

@ -808,7 +808,8 @@ class App.TicketZoom extends App.Controller
@autosaveStop() @autosaveStop()
# validate ticket form using HTML5 validity check # validate ticket form using HTML5 validity check
if !@$('.edit').parent().get(0).reportValidity() element = @$('.edit').parent().get(0)
if element && element.reportValidity && !element.reportValidity()
@submitEnable(e) @submitEnable(e)
@autosaveStart() @autosaveStart()
return return