Stop autosave if task is not active.
This commit is contained in:
parent
dcde584833
commit
90068a6ba8
1 changed files with 5 additions and 3 deletions
|
@ -101,6 +101,8 @@ class App.TicketZoom extends App.Controller
|
||||||
|
|
||||||
@activeState = true
|
@activeState = true
|
||||||
|
|
||||||
|
@autosaveStart()
|
||||||
|
|
||||||
App.Event.trigger('ui::ticket::shown', { ticket_id: @ticket_id } )
|
App.Event.trigger('ui::ticket::shown', { ticket_id: @ticket_id } )
|
||||||
|
|
||||||
# inital load of highlights
|
# inital load of highlights
|
||||||
|
@ -113,6 +115,7 @@ class App.TicketZoom extends App.Controller
|
||||||
hide: =>
|
hide: =>
|
||||||
@activeState = false
|
@activeState = false
|
||||||
@positionPageHeaderStop()
|
@positionPageHeaderStop()
|
||||||
|
@autosaveStop()
|
||||||
|
|
||||||
changed: =>
|
changed: =>
|
||||||
return false if !@ticket
|
return false if !@ticket
|
||||||
|
@ -349,8 +352,6 @@ class App.TicketZoom extends App.Controller
|
||||||
@scrollTo( 0, offset )
|
@scrollTo( 0, offset )
|
||||||
@delay( scrollTo, 100, false )
|
@delay( scrollTo, 100, false )
|
||||||
|
|
||||||
@autosaveStart()
|
|
||||||
|
|
||||||
@scrollToBottom()
|
@scrollToBottom()
|
||||||
|
|
||||||
@positionPageHeaderStart()
|
@positionPageHeaderStart()
|
||||||
|
@ -372,7 +373,8 @@ class App.TicketZoom extends App.Controller
|
||||||
if !@autosaveLast
|
if !@autosaveLast
|
||||||
@autosaveLast = @taskGet()
|
@autosaveLast = @taskGet()
|
||||||
update = =>
|
update = =>
|
||||||
#console.log('AR', @formParam( @el.find('.article-add') ) )
|
#console.log('AR', @ticket_id, @ticket, @formParam( @el.find('.article-add') ) )
|
||||||
|
return if !@ticket
|
||||||
currentStoreTicket = @ticket.attributes()
|
currentStoreTicket = @ticket.attributes()
|
||||||
delete currentStoreTicket.article
|
delete currentStoreTicket.article
|
||||||
currentStore =
|
currentStore =
|
||||||
|
|
Loading…
Reference in a new issue