UI - Ability to preview/view single changes by timestamp using keyboard or select box(#1916)

This commit is contained in:
dgtlmoon
2024-05-16 23:39:06 +02:00
committed by GitHub
parent e4504fee49
commit e27f66eb73
6 changed files with 194 additions and 110 deletions

View File

@@ -79,12 +79,7 @@ $(document).ready(function () {
$('#jump-next-diff').click();
}
$('.needs-localtime').each(function () {
for (var option of this.options) {
var dateObject = new Date(option.value * 1000);
option.label = dateObject.toLocaleString(undefined, {dateStyle: "full", timeStyle: "medium"});
}
})
onDiffTypeChange(
document.querySelector('#settings [name="diff_type"]:checked'),
);