pineapplethief / redmine_issue_tabs

Redmine plugin that enhances issue interface by adding several useful tabs: timelog, time spent, code commits, history
2 stars 6 forks source link

Timelog tab is not visible is default, when it only one #7

Open kvetkin opened 8 years ago

kvetkin commented 8 years ago

Timelog tab is not visible is default (not selected), when it only one (no tab history and comments). Please, do it selected by default. I correct file issue-history-tabs.js to do this if ($('.tabs a.selected').length == 0){ var aTabSelected = $('.tabs a').first(); aTabSelected.addClass('selected'); if (aTabSelected.length) { var aContentId = aTabSelected.attr('id').replace('tab-', 'tab-content-'); $('#' + aContentId).show(); } }