Improved renderScreen* to accept local el via params.

This commit is contained in:
Martin Edenhofer 2017-05-08 16:30:39 +02:00
parent b916929c29
commit bc3ecc1905

View file

@ -579,19 +579,19 @@ class App.Controller extends Spine.Controller
renderScreenSuccess: (data) -> renderScreenSuccess: (data) ->
App.TaskManager.touch(@task_key) if @task_key App.TaskManager.touch(@task_key) if @task_key
@html App.view('generic/error/success')(data) (data.el || @).html App.view('generic/error/success')(data)
renderScreenError: (data) -> renderScreenError: (data) ->
App.TaskManager.touch(@task_key) if @task_key App.TaskManager.touch(@task_key) if @task_key
@html App.view('generic/error/generic')(data) (data.el || @).html App.view('generic/error/generic')(data)
renderScreenNotFound: (data) -> renderScreenNotFound: (data) ->
App.TaskManager.touch(@task_key) if @task_key App.TaskManager.touch(@task_key) if @task_key
@html App.view('generic/error/not_found')(data) (data.el || @).html App.view('generic/error/not_found')(data)
renderScreenUnauthorized: (data) -> renderScreenUnauthorized: (data) ->
App.TaskManager.touch(@task_key) if @task_key App.TaskManager.touch(@task_key) if @task_key
@html App.view('generic/error/unauthorized')(data) (data.el || @).html App.view('generic/error/unauthorized')(data)
locationVerify: (e) => locationVerify: (e) =>
newLocation = $(e.currentTarget).attr 'href' newLocation = $(e.currentTarget).attr 'href'