Home Asylum Feedback/Support

Audio Asylum feedback, support and feature wish list.

OK, these seems happier

//you can paste into Chrome console and try it, have to be in Thread View
//it's meant as a drop-in replacement for current function, no need to re-do anything else, within aa.js file
//once I save here it will lose all the formatting, you can paste into https://beautifier.io/ linked below

function confirmRead(ReadForum, ReadThread)
{
if (userID)
{
if (userID != null)
{
if (confirm("Are you sure you want to mark toggle - test " + ReadThread + " as read/unread?"))
{
var anchorElement = document.querySelector('a[href*="' + ReadThread + '.html"]');

var nearestLiParent = anchorElement.parentNode.closest('li');
toggleElement = nearestLiParent;

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

var nextSib = nearestLiParent.nextElementSibling;
if (anchorElement)
{
var count = 0;
var ulChildren;
var children = nearestLiParent.nextElementSibling.querySelectorAll('*');
children = nextSib.querySelectorAll('li');

for (let i = 0; i < children.length; i++)
{

var toggleElement = children[i];
toggleElement.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.")
}
}


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


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.