From 3b47640d01b44101ce67010dc1f763533f1a5eb0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 24 Mar 2016 15:21:00 +0100 Subject: [PATCH] Update page title my task manager after task got shown. --- app/assets/javascripts/app/controllers/taskbar_widget.coffee | 2 +- app/assets/javascripts/app/lib/app_post/task_manager.coffee | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/taskbar_widget.coffee b/app/assets/javascripts/app/controllers/taskbar_widget.coffee index 3c9f6f3b9..f10052097 100644 --- a/app/assets/javascripts/app/controllers/taskbar_widget.coffee +++ b/app/assets/javascripts/app/controllers/taskbar_widget.coffee @@ -49,7 +49,7 @@ class App.TaskbarWidget extends App.Controller item.meta = meta taskItems.push item - # set title + # update title if task.active @title meta.title diff --git a/app/assets/javascripts/app/lib/app_post/task_manager.coffee b/app/assets/javascripts/app/lib/app_post/task_manager.coffee index 00dd466f8..e3102b0e3 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.coffee @@ -258,6 +258,11 @@ class _taskManagerSingleton extends App.Controller if controller.show controller.show(params_app) + # update title + if controller.meta + meta = controller.meta() + @title meta.title + true # hide task content