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: =>
|
autosaveStart: =>
|
||||||
if !@autosaveLast
|
if !@autosaveLast
|
||||||
state = App.TaskManager.get(@task_key)
|
task = App.TaskManager.get(@task_key)
|
||||||
if !state
|
if task && !task.state
|
||||||
state = {}
|
task.state = {}
|
||||||
@autosaveLast = state || {}
|
@autosaveLast = task.state || {}
|
||||||
update = =>
|
update = =>
|
||||||
data = @formParam(@$('.ticket-create'))
|
data = @formParam(@$('.ticket-create'))
|
||||||
return if _.isEmpty(data)
|
return if _.isEmpty(data)
|
||||||
|
|
Loading…
Reference in a new issue