From 04b8be1d5b9654b08ac5e2566f5ed63f3f02d787 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 20 Jun 2019 07:13:54 +0000 Subject: User preference for issue history default tab (#3058). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18277 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public') diff --git a/public/javascripts/application.js b/public/javascripts/application.js index c1ecd86c7..42da02765 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -929,6 +929,11 @@ function toggleNewObjectDropdown() { $(document).ready(function(){ $('#content').on('change', 'input[data-disables], input[data-enables], input[data-shows]', toggleDisabledOnChange); toggleDisabledInit(); + + $('#history .tabs').on('click', 'a', function(e){ + var tab = $(e.target).attr('id').replace('tab-',''); + document.cookie = 'history_last_tab=' + tab + }); }); $(document).ready(function(){ -- cgit v1.2.3