6c08a9c1a9dd5833cde3cfd3d893c3609eaa5365
chmalee
Fri Oct 25 09:03:30 2024 -0700
Don't click a button that doesn't exist anymore, refs #34604
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index a25bc8c..c56b238 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -5822,31 +5822,31 @@
let isUserLoggedIn = (typeof userLoggedIn !== 'undefined' && userLoggedIn === true);
let hideTutorial = localStorage.getItem(lsKey);
let tutMsgKey = "hgTracks_tutMsgCount";
let tmp = localStorage.getItem(tutMsgKey), tutMsgCount = 0;
if (tmp !== null) {tutMsgCount = parseInt(tmp);}
// if the user is not logged in and they have not already gone through the
// tutorial
if (!isUserLoggedIn && !hideTutorial && tutMsgCount < 5) {
let msg = "New to the Genome Browser? See our short (2-3 minute) guided tutorial. " +
"All tutorials can be found in the top blue bar menu under Help > Interactive Tutorial. " +
"";
notifBoxSetup("hgTracks", "hideTutorial", msg, true);
notifBoxShow("hgTracks", "hideTutorial");
localStorage.setItem("hgTracks_tutMsgCount", ++tutMsgCount);
$("#showTutorialLink").on("click", function() {
- $("#hgTracks_hideTutorialnotifyHide").trigger("click");
+ $("#hgTracks_hideTutorialnotifyHideForever").trigger("click");
tour.start();
});
}
// allow user to bring the tutorial up under the help menu whether they've seen
// it or not
let tutorialLinkMenuItem = document.createElement("li");
tutorialLinkMenuItem.id = "hgTracksHelpTutorialMenuItem";
tutorialLinkMenuItem.innerHTML = "" +
"Interactive Tutorial";
$("#help > ul")[0].appendChild(tutorialLinkMenuItem);
$("#hgTracksHelpTutorialLink").on("click", function () {
tour.start();
});
}