Fixed store of task state.
This commit is contained in:
parent
46aeca2bdc
commit
2f2121d794
1 changed files with 4 additions and 4 deletions
|
@ -132,10 +132,10 @@ class App.TicketCreate extends App.Controller
|
|||
|
||||
autosaveStart: =>
|
||||
if !@autosaveLast
|
||||
state = App.TaskManager.get(@task_key)
|
||||
if !state
|
||||
state = {}
|
||||
@autosaveLast = state || {}
|
||||
task = App.TaskManager.get(@task_key)
|
||||
if task && !task.state
|
||||
task.state = {}
|
||||
@autosaveLast = task.state || {}
|
||||
update = =>
|
||||
data = @formParam(@$('.ticket-create'))
|
||||
return if _.isEmpty(data)
|
||||
|
|
Loading…
Reference in a new issue