mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Had my comments backwards, simplify selector
This commit is contained in:
@@ -8,16 +8,16 @@ function showNewsOverlay() {
|
||||
}
|
||||
|
||||
function newsSeen() {
|
||||
// When it's seen, remove fa and far, add fas.
|
||||
const newsIconSpan = document.getElementById("news").querySelector(".fa-bell");
|
||||
// When it's seen, remove fa, add far.
|
||||
const newsIconSpan = document.querySelector("#news .fa-bell");
|
||||
newsIconSpan.classList.remove("fa");
|
||||
newsIconSpan.classList.add("far");
|
||||
window.localStorage.setItem("galaxy-news-seen-release", Galaxy.config.version_major);
|
||||
}
|
||||
|
||||
function newsUnseen() {
|
||||
// When there is news, set far instead of fa
|
||||
const newsIconSpan = document.getElementById("news").querySelector(".fa-bell");
|
||||
// When there is news, remove far, add fa for (default -- same as fas) solid style.
|
||||
const newsIconSpan = document.querySelector("#news .fa-bell");
|
||||
newsIconSpan.classList.remove("far");
|
||||
newsIconSpan.classList.add("fa");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user