summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:13:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:13:54 +0000
commit04b8be1d5b9654b08ac5e2566f5ed63f3f02d787 (patch)
tree2d68c44f7015394c7e58f6d08904995bcef10016 /public
parentd3e51b4235a1c53b0ad042397a7b2ad893fc6dcc (diff)
downloadredmine-04b8be1d5b9654b08ac5e2566f5ed63f3f02d787.tar.gz
redmine-04b8be1d5b9654b08ac5e2566f5ed63f3f02d787.zip
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
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js5
1 files changed, 5 insertions, 0 deletions
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(){