Implemented issue #205 - Cursor focus on any modal dialogs.

This commit is contained in:
Martin Edenhofer 2017-04-18 19:52:00 +02:00
parent f3f2d1ef85
commit 043cacfc26
2 changed files with 2 additions and 5 deletions

View file

@ -793,8 +793,8 @@ class App.ControllerModal extends App.Controller
onShow: -> onShow: ->
# do nothing # do nothing
onShown: -> onShown: =>
# do nothing @$('input:not([disabled]):not([type="hidden"]):not(".btn"), textarea').first().focus()
onClose: -> onClose: ->
# do nothing # do nothing

View file

@ -20,9 +20,6 @@ class App.TicketZoomTimeAccounting extends App.ControllerModal
content: -> content: ->
App.view('ticket_zoom/time_accounting')() App.view('ticket_zoom/time_accounting')()
onShown: =>
@$('[name="time_unit"]').focus()
skip: (e) => skip: (e) =>
return if !@submitCallback return if !@submitCallback
@submitCallback({}) @submitCallback({})