From 1836522695e45c95bd48ff560cda825672f34d65 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 1 Apr 2016 00:35:55 +0200 Subject: [PATCH] Show loading... tab right after tab creation. --- app/assets/javascripts/app/lib/app_post/task_manager.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 2ca8cd95c..e841e4a10 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.coffee @@ -192,6 +192,8 @@ class _taskManagerSingleton extends App.Controller ) @allTasksByKey[params.key] = task.attributes() + @touch(params.key) + # save new task and update task collection ui = @ task.save( @@ -515,7 +517,7 @@ class _taskManagerSingleton extends App.Controller persistent: true init: true ) - task_count * 250 + task_count * 350 undefined 'task' ) @@ -534,7 +536,7 @@ class _taskManagerSingleton extends App.Controller persistent: false init: true ) - task_count * 250 + task_count * 350 undefined 'task' )