Skip to content

Commit

Permalink
Fix a couple bugs related to the Releases tab (refined-github#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jan 13, 2018
1 parent 316b67e commit 7fd3c55
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions source/features/add-releases-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ export default async () => {
appendReleasesCount((await localCache)[repoKey]);

if (pageDetect.isReleases()) {
select('.reponav-item.selected').classList.remove(
'js-selected-navigation-item',
'selected'
);
releasesTab.classList.add(
'js-selected-navigation-item',
'selected'
);
const selected = select('.reponav-item.selected');
if (selected) {
selected.classList.remove('js-selected-navigation-item', 'selected');
}
releasesTab.classList.add('js-selected-navigation-item', 'selected');
releasesTab.setAttribute('data-selected-links', 'repo_releases'); // Required for ajaxLoad
}
};

0 comments on commit 7fd3c55

Please sign in to comment.