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: ->
# do nothing
onShown: ->
# do nothing
onShown: =>
@$('input:not([disabled]):not([type="hidden"]):not(".btn"), textarea').first().focus()
onClose: ->
# do nothing

View file

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