From 7fe378fdf016fe0d68af510d0ac0c4f4797dcc01 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 25 Sep 2017 14:15:45 +0300 Subject: [PATCH] Working on time tracker --- resources/views/tasks/time_tracker_knockout.blade.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/views/tasks/time_tracker_knockout.blade.php b/resources/views/tasks/time_tracker_knockout.blade.php index 8851cb30b71b..6f38108bf97a 100644 --- a/resources/views/tasks/time_tracker_knockout.blade.php +++ b/resources/views/tasks/time_tracker_knockout.blade.php @@ -51,6 +51,7 @@ if (action == 'archive' || action == 'delete') { self.removeTask(task); self.selectTask(false); + $('#search').focus(); } if (action == 'archive') { toastr.success("{{ trans('texts.archived_task') }}"); @@ -302,9 +303,6 @@ if (task == self.selectedTask()) { task = false; - if (! $('#search').is(':focus')) { - $('#search').focus(); - } } // if a client is selected the project list will be filtered