Re-render task on renderScreenError(), renderScreenNotFound() and renderScreenUnauthorized() automatically.

This commit is contained in:
Martin Edenhofer 2016-04-01 08:20:52 +02:00
parent 1836522695
commit ada5538e1b
3 changed files with 3 additions and 5 deletions

View file

@ -551,12 +551,15 @@ class App.Controller extends Spine.Controller
@clearDelay(@initLoadingDoneDelay) @clearDelay(@initLoadingDoneDelay)
renderScreenError: (data) -> renderScreenError: (data) ->
App.TaskManager.touch(@task_key)
@html App.view('generic/error/generic')(data) @html App.view('generic/error/generic')(data)
renderScreenNotFound: (data) -> renderScreenNotFound: (data) ->
App.TaskManager.touch(@task_key)
@html App.view('generic/error/not_found')(data) @html App.view('generic/error/not_found')(data)
renderScreenUnauthorized: (data) -> renderScreenUnauthorized: (data) ->
App.TaskManager.touch(@task_key)
@html App.view('generic/error/unauthorized')(data) @html App.view('generic/error/unauthorized')(data)
locationVerify: (e) => locationVerify: (e) =>

View file

@ -116,8 +116,6 @@ class App.ControllerGenericIndex extends App.Controller
@log 'error', 'ajax', msg.status @log 'error', 'ajax', msg.status
if msg.status is 401 if msg.status is 401
@log 'error', 'ajax', rec, msg, msg.status @log 'error', 'ajax', rec, msg, msg.status
# @navigate @pageData.navupdate
# alert('relogin')
@navigate 'login' @navigate 'login'
# execute fetch # execute fetch

View file

@ -210,9 +210,6 @@ class App.TicketZoom extends App.Controller
detail: detail detail: detail
objectName: 'Ticket' objectName: 'Ticket'
) )
# update taskbar with new meta data
App.TaskManager.touch(@task_key)
) )