mod_http_muc_log/static/timestamps.js
author Matthew Wild <mwild1@gmail.com>
Sun, 03 Mar 2024 16:10:14 +0000
changeset 5860 6fe4dab27187
parent 5122 7bce75e74f86
permissions -rw-r--r--
mod_report_forward: Depend on mod_spam_reporting for auto-loading

/*
* Local timestamps
*/
(function () {
var timeTags = document.getElementsByTagName("time");
var i = 0, tag, date;
while(timeTags[i]) {
tag = timeTags[i++];
if(date = tag.getAttribute("datetime")) {
date = new Date(date);
tag.textContent = date.toLocaleTimeString(navigator.language);
tag.setAttribute("title", date.toString());
}
}
if(document.forms.length>0){
document.forms[0].elements.p.addEventListener("change", function() {
document.forms[0].submit();
});
}
})();