Implemented issue #205 - Cursor focus on any modal dialogs.
This commit is contained in:
parent
f3f2d1ef85
commit
043cacfc26
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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({})
|
||||
|
|
Loading…
Reference in a new issue