Home Asylum Feedback/Support

Audio Asylum feedback, support and feature wish list.

RE: Mark as Read not working?

Well, I am a fool, I expected mark read to turn all the hyperlinks red, but what it does is change the little arrow!

In that case this should get there, more or less.
I don't have a way to step through the code so had to hammer in console

The business end is this, you can type in browser console and add/remove the classes

anchorElement = document.querySelector('a[href*="185726.html"]');
nearestLiParent = anchorElement.closest('li');
nearestLiParent.classList.add("aa-d"); // or nearestLiParent.classList.remove("aa-d");

full function:


function confirmRead(ReadForum, ReadThread) {
if (userID) {
if (userID != null) {
if (confirm("Are you sure you want to mark thread - test " + ReadThread + " as read?")) {

//we dont have id's in elemetns so have to get creative

anchorElement = document.querySelector('a[href*="' + ReadThread + '.html"]');
nearestLiParent = anchorElement.closest('li'); // this grabs the parent

nearestLiParent.classList.add('aa-d');

}
} else {
alert("You must log in to Mark Threads as read.")
}
} else {
alert("You must log in to Mark Threads as read.")
}
}



Edits: 02/26/25

This post is made possible by the generous support of people like you and our sponsors:
  Kimber Kable  


Follow Ups Full Thread
Follow Ups

FAQ

Post a Message!

Forgot Password?
Moniker (Username):
Password (Optional):
  Remember my Moniker & Password  (What's this?)    Eat Me
E-Mail (Optional):
Subject:
Message:   (Posts are subject to Content Rules)
Optional Link URL:
Optional Link Title:
Optional Image URL:
Upload Image:
E-mail Replies:  Automagically notify you when someone responds.