mirror of
https://github.com/go-gitea/gitea
synced 2025-07-21 09:48:37 +00:00
rework stopwatch using relative-time
This commit is contained in:
@@ -96,6 +96,7 @@ function attachTooltip(target, content = null) {
|
||||
|
||||
function switchTitleToTooltip(target) {
|
||||
let title = target.getAttribute('title');
|
||||
if (target.getAttribute('data-no-tooltip')) return;
|
||||
if (title) {
|
||||
// apply custom formatting to relative-time's tooltips
|
||||
if (target.tagName.toLowerCase() === 'relative-time') {
|
||||
|
Reference in New Issue
Block a user