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: ->
|
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
|
||||||
|
|
|
@ -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({})
|
||||||
|
|
Loading…
Reference in a new issue