Re-render task on renderScreenError(), renderScreenNotFound() and renderScreenUnauthorized() automatically.
This commit is contained in:
parent
1836522695
commit
ada5538e1b
3 changed files with 3 additions and 5 deletions
|
@ -551,12 +551,15 @@ class App.Controller extends Spine.Controller
|
|||
@clearDelay(@initLoadingDoneDelay)
|
||||
|
||||
renderScreenError: (data) ->
|
||||
App.TaskManager.touch(@task_key)
|
||||
@html App.view('generic/error/generic')(data)
|
||||
|
||||
renderScreenNotFound: (data) ->
|
||||
App.TaskManager.touch(@task_key)
|
||||
@html App.view('generic/error/not_found')(data)
|
||||
|
||||
renderScreenUnauthorized: (data) ->
|
||||
App.TaskManager.touch(@task_key)
|
||||
@html App.view('generic/error/unauthorized')(data)
|
||||
|
||||
locationVerify: (e) =>
|
||||
|
|
|
@ -116,8 +116,6 @@ class App.ControllerGenericIndex extends App.Controller
|
|||
@log 'error', 'ajax', msg.status
|
||||
if msg.status is 401
|
||||
@log 'error', 'ajax', rec, msg, msg.status
|
||||
# @navigate @pageData.navupdate
|
||||
# alert('relogin')
|
||||
@navigate 'login'
|
||||
|
||||
# execute fetch
|
||||
|
|
|
@ -210,9 +210,6 @@ class App.TicketZoom extends App.Controller
|
|||
detail: detail
|
||||
objectName: 'Ticket'
|
||||
)
|
||||
|
||||
# update taskbar with new meta data
|
||||
App.TaskManager.touch(@task_key)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue