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();'); });