Improved autosave. Also moved to event based auto save for ticket creation.
This commit is contained in:
parent
3f5a3da61a
commit
718263afd1
2 changed files with 6 additions and 2 deletions
|
@ -142,7 +142,10 @@ class App.TicketCreate extends App.Controller
|
|||
@latestTitle = title
|
||||
App.TaskManager.touch(@task_key)
|
||||
|
||||
@interval(update, 3000, @id)
|
||||
@el.on('change.local blur.local keyup.local paste.local input.local', 'form, .js-textarea', (e) =>
|
||||
@delay(update, 250, 'ticket-create-form-update')
|
||||
)
|
||||
@delay(update, 800, 'ticket-create-form-update')
|
||||
|
||||
# get data / in case also ticket data for split
|
||||
buildScreen: (params) =>
|
||||
|
|
|
@ -100,7 +100,7 @@ class App.TicketZoom extends App.Controller
|
|||
@activeState = true
|
||||
|
||||
# start autosave
|
||||
@delay(@autosaveStart, 800, "ticket-zoom-auto-save-#{@ticket_id}")
|
||||
@autosaveStart()
|
||||
|
||||
# if ticket is shown the first time
|
||||
if !@shown
|
||||
|
@ -428,6 +428,7 @@ class App.TicketZoom extends App.Controller
|
|||
@el.on('change.local blur.local keyup.local paste.local input.local', 'form, .js-textarea', (e) =>
|
||||
@delay(update, 250, 'ticket-zoom-form-update')
|
||||
)
|
||||
@delay(update, 800, 'ticket-zoom-form-update')
|
||||
|
||||
currentStore: =>
|
||||
return if !@ticket
|
||||
|
|
Loading…
Reference in a new issue