From 67f33b3e3982f38b7e2f89832622085183f99440 Mon Sep 17 00:00:00 2001 From: Robin Dickson Date: Mon, 6 Jun 2016 16:28:14 +0100 Subject: [PATCH] Remove JS for search input autofocus Previously replaced by HTML5 autofocus. --- app/assets/javascripts/tracks.js.erb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/assets/javascripts/tracks.js.erb b/app/assets/javascripts/tracks.js.erb index 9fdbbb90..80813d5f 100644 --- a/app/assets/javascripts/tracks.js.erb +++ b/app/assets/javascripts/tracks.js.erb @@ -894,12 +894,6 @@ var RecurringTodosPage = { } }; -var SearchPage = { - setup_behavior: function() { - $('#search-form #search').focus(); - } -}; - /**************************************/ /* generic Tracks functions */ /**************************************/ @@ -1145,7 +1139,7 @@ $(document).ready(function() { /* enable page specific behavior */ $([ 'PreferencesPage', 'NotesPage', 'ProjectListPage', 'ContextListPage', 'FeedsPage', 'RecurringTodosPage', 'TodoItems', 'TracksPages', - 'TracksForm', 'SearchPage', 'UsersPage' ]).each(function() { + 'TracksForm', 'UsersPage' ]).each(function() { eval(this+'.setup_behavior();'); });