mirror of https://github.com/go-gitea/gitea.git
remove data-no-tooltip
This commit is contained in:
parent
3de268d912
commit
729864b015
|
@ -158,7 +158,7 @@ function updateStopwatchTime(seconds) {
|
|||
el.setAttribute('format', 'micro');
|
||||
el.setAttribute('datetime', datetime);
|
||||
el.setAttribute('lang', 'en-US');
|
||||
el.setAttribute('data-no-tooltip', 'true');
|
||||
el.setAttribute('title', ''); // make <relative-time> show no title and therefor no tooltip
|
||||
parent.append(el);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -96,7 +96,6 @@ 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') {
|
||||
|
|
Loading…
Reference in New Issue