Skip to content

Commit

Permalink
Various fixes.
Browse files Browse the repository at this point in the history
Fixed issue where news button could not be tabbed to when news UI is active.
Fixed incorrect java version sorting (now behaves as intended).
  • Loading branch information
dscalzi committed May 15, 2018
1 parent d2c435c commit 71cbd10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/assets/js/assetguard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,22 +1019,22 @@ class AssetGuard extends EventEmitter {
// Same version, give priority to JRE.

if(a.execPath.toLowerCase().indexOf('jdk') > -1){
return 1
return b.execPath.toLowerCase().indexOf('jdk') > -1 ? 0 : 1
} else {
return b.execPath.toLowerCase().indexOf('jdk') > -1 ? 0 : -1
return -1
}


} else {
return a.version.build > b.version.build ? 1 : -1
return a.version.build > b.version.build ? -1 : 1
}

} else {
return a.version.update > b.version.update ? 1 : -1
return a.version.update > b.version.update ? -1 : 1
}

} else {
return a.version.major > b.version.major ? 1 : -1
return a.version.major > b.version.major ? -1 : 1
}

})
Expand Down
2 changes: 1 addition & 1 deletion app/assets/js/scripts/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ document.getElementById('newsButton').onclick = () => {
$("#newsContainer *").attr('tabindex', '-1')
} else {
$("#landingContainer *").attr('tabindex', '-1')
$("#newsContainer, #newsContainer *").removeAttr('tabindex')
$("#newsContainer, #newsContainer *, #lower, #lower #center *").removeAttr('tabindex')
}
slide_(!newsActive)
newsActive = !newsActive
Expand Down

0 comments on commit 71cbd10

Please sign in to comment.