From e2f824e3014a137323013d538f829e425dbf9910 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 28 Mar 2016 10:55:15 +0200 Subject: [PATCH] Prevent reopen tab on closing tabs. --- app/assets/javascripts/app/controllers/taskbar_widget.coffee | 1 + app/assets/javascripts/app/lib/app_post/task_manager.coffee | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/taskbar_widget.coffee b/app/assets/javascripts/app/controllers/taskbar_widget.coffee index f10052097..1ddd316ff 100644 --- a/app/assets/javascripts/app/controllers/taskbar_widget.coffee +++ b/app/assets/javascripts/app/controllers/taskbar_widget.coffee @@ -81,6 +81,7 @@ class App.TaskbarWidget extends App.Controller remove: (e, key = false, force = false) => e.preventDefault() + e.stopPropagation() if !key key = $(e.target).parents('a').data('key') if !key 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 1edea371e..fa0571d6b 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.coffee @@ -464,7 +464,6 @@ class _taskManagerSingleton extends App.Controller # if task isnt already stored on backend return if !task.id App.Taskbar.destroy(task.id) - return tasksInitial: => @init()